Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
5f80b746
Commit
5f80b746
authored
Jan 01, 2018
by
conorshipp
Committed by
Evan W. Patton
Jan 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support carriage return "\r" in blocks language
Resolves #1090
parent
8ecc6161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
appinventor/blocklyeditor/src/generators/yail.js
appinventor/blocklyeditor/src/generators/yail.js
+2
-2
No files found.
appinventor/blocklyeditor/src/generators/yail.js
View file @
5f80b746
...
...
@@ -487,9 +487,9 @@ Blockly.Yail.quotifyForREPL = function(s) {
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
c
=
s
.
charAt
(
i
);
if
(
c
==
'
\\
'
)
{
// If this is \n
or \t
don't slashify the backslash
// If this is \n
, \t or \r
don't slashify the backslash
// TODO(user): Make this cleaner and more general
if
(
!
(
i
==
lastIndex
)
&&
(
s
.
charAt
(
i
+
1
)
==
'
n
'
||
s
.
charAt
(
i
+
1
)
==
'
t
'
))
{
if
(
!
(
i
==
lastIndex
)
&&
(
s
.
charAt
(
i
+
1
)
==
'
n
'
||
s
.
charAt
(
i
+
1
)
==
'
t
'
||
s
.
charAt
(
i
+
1
)
==
'
r
'
))
{
sb
.
push
(
c
);
sb
.
push
(
s
.
charAt
(
i
+
1
));
i
=
i
+
1
;
...
...
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