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
386eae0f
Commit
386eae0f
authored
Oct 02, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 35957
parent
554bfc55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
cell/model/clipboard.js
cell/model/clipboard.js
+6
-3
No files found.
cell/model/clipboard.js
View file @
386eae0f
...
...
@@ -2678,7 +2678,12 @@
for
(
var
Index
=
0
;
Index
<
Count
;
Index
++
)
{
var
_char
=
text
.
charAt
(
Index
);
var
_charCode
=
text
.
charCodeAt
(
Index
);
if
(
_charCode
===
0x0A
||
Index
===
Count
-
1
){
if
(
_charCode
!==
0x0A
){
insertText
+=
_char
;
}
if
(
_charCode
===
0x0A
||
Index
===
Count
-
1
){
var
newParaRun
=
new
ParaRun
();
window
[
'
AscCommon
'
].
addTextIntoRun
(
newParaRun
,
insertText
);
newParagraph
.
Internal_Content_Add
(
newParagraph
.
Content
.
length
-
1
,
newParaRun
,
false
);
...
...
@@ -2688,8 +2693,6 @@
insertText
=
""
;
newParagraph
=
new
Paragraph
(
isIntoShape
.
DrawingDocument
,
isIntoShape
);
}
else
{
insertText
+=
_char
;
}
}
...
...
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