Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
8cacd265
Commit
8cacd265
authored
Jul 07, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb_load files, backslash replaced by double backslash to void parse errors
parent
dfaf7cc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
wb/lib/wb/src/wb_print_wbl.cpp
wb/lib/wb/src/wb_print_wbl.cpp
+2
-0
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+9
-1
No files found.
wb/lib/wb/src/wb_print_wbl.cpp
View file @
8cacd265
...
...
@@ -644,6 +644,8 @@ void wb_print_wbl::printText(wb_volume& v,
for
(
ip
=
text
,
i
=
0
;
*
ip
!=
0
&&
i
<
end
;
ip
++
)
{
if
(
*
ip
==
'"'
)
m_os
<<
"
\\
"
;
else
if
(
*
ip
==
'\\'
)
m_os
<<
"
\\
"
;
m_os
<<
*
ip
;
}
...
...
wb/lib/wb/src/wb_wblnode.cpp
View file @
8cacd265
...
...
@@ -1888,11 +1888,13 @@ void wb_wblnode::registerNode( wb_vrepwbl *vol)
}
else
if
(
getType
()
==
tokens
.
STRING_LITERAL
)
{
// Remove quotes and replace \" with "
// Remove quotes and replace \" with "
and also backslash
char
str
[
2048
];
const
char
*
s
;
char
*
t
;
bool
first
=
true
;
bool
backslash_done
=
false
;
t
=
str
;
for
(
s
=
getText
().
c_str
();
*
s
;
s
++
)
{
if
(
first
)
{
...
...
@@ -1901,6 +1903,12 @@ void wb_wblnode::registerNode( wb_vrepwbl *vol)
}
if
(
*
s
==
'"'
&&
*
(
s
-
1
)
==
'\\'
)
t
--
;
if
(
*
s
==
'\\'
&&
*
(
s
-
1
)
==
'\\'
&&
!
backslash_done
)
{
backslash_done
=
true
;
t
--
;
}
else
backslash_done
=
false
;
*
t
=
*
s
;
t
++
;
}
...
...
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