Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
6b5ca94e
Commit
6b5ca94e
authored
Apr 07, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nonBreakHyphen
parent
8357b6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
word/Editor/Serialize2.js
word/Editor/Serialize2.js
+37
-2
No files found.
word/Editor/Serialize2.js
View file @
6b5ca94e
...
...
@@ -352,7 +352,10 @@ var c_oSerRunType = {
delText
:
15
,
del
:
16
,
ins
:
17
,
columnbreak
:
18
columnbreak
:
18
,
cr
:
19
,
nonBreakHyphen
:
20
,
softHyphen
:
21
};
var
c_oSerImageType
=
{
MediaId
:
0
,
...
...
@@ -4130,7 +4133,13 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa
switch
(
item
.
Type
)
{
case
para_Text
:
sCurText
+=
encodeSurrogateChar
(
item
.
Value
);
if
(
item
.
Is_NoBreakHyphen
())
{
sCurText
=
this
.
WriteText
(
sCurText
,
delText
);
oThis
.
memory
.
WriteByte
(
c_oSerRunType
.
nonBreakHyphen
);
oThis
.
memory
.
WriteLong
(
c_oSerPropLenType
.
Null
);
}
else
{
sCurText
+=
encodeSurrogateChar
(
item
.
Value
);
}
break
;
case
para_Space
:
sCurText
+=
"
"
;
...
...
@@ -8422,6 +8431,19 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
if
(
null
!=
oDrawing
.
content
.
GraphicObj
)
oNewElem
=
oDrawing
.
content
;
}
else
if
(
c_oSerRunType
.
cr
===
type
)
{
oNewElem
=
new
ParaNewLine
(
break_Line
);
}
else
if
(
c_oSerRunType
.
nonBreakHyphen
===
type
)
{
oNewElem
=
new
ParaText
(
String
.
fromCharCode
(
0x2013
));
oNewElem
.
Set_SpaceAfter
(
false
);
}
else
if
(
c_oSerRunType
.
softHyphen
===
type
)
{
//todo
}
else
res
=
c_oSerConstants
.
ReadUnknown
;
if
(
null
!=
oNewElem
)
...
...
@@ -9222,6 +9244,19 @@ function Binary_oMathReader(stream, oReadResult)
{
oNewElem
=
new
ParaNewLine
(
break_Column
);
}
else
if
(
c_oSerRunType
.
cr
===
type
)
{
oNewElem
=
new
ParaNewLine
(
break_Line
);
}
else
if
(
c_oSerRunType
.
nonBreakHyphen
===
type
)
{
oNewElem
=
new
ParaText
(
String
.
fromCharCode
(
0x2013
));
oNewElem
.
Set_SpaceAfter
(
false
);
}
else
if
(
c_oSerRunType
.
softHyphen
===
type
)
{
//todo
}
else
if
(
c_oSerRunType
.
_LastRun
===
type
)
this
.
oReadResult
.
bLastRun
=
true
;
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment