Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
db474cff
Commit
db474cff
authored
Sep 21, 2018
by
Tiago Peixoto
Browse files
Fix quoting bug in graphviz.hpp
This fixes issue
#507
.
parent
5457d04f
Pipeline
#436
failed with stage
in 359 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/boost-workaround/boost/graph/graphviz.hpp
View file @
db474cff
...
...
@@ -96,7 +96,7 @@ namespace boost {
label_writer
(
Name
_name
)
:
name
(
_name
)
{}
template
<
class
VertexOrEdge
>
void
operator
()(
std
::
ostream
&
out
,
const
VertexOrEdge
&
v
)
const
{
out
<<
"[label=
\"
"
<<
escape_dot_string
(
get
(
name
,
v
))
<<
"
\
"
]"
;
out
<<
"[label="
<<
escape_dot_string
(
get
(
name
,
v
))
<<
"]"
;
}
private:
Name
name
;
...
...
@@ -127,7 +127,7 @@ namespace boost {
iend
=
attr
.
end
();
while
(
i
!=
iend
)
{
out
<<
i
->
first
<<
"=
\"
"
<<
escape_dot_string
(
i
->
second
)
<<
"
\"
"
;
out
<<
i
->
first
<<
"="
<<
escape_dot_string
(
i
->
second
);
++
i
;
if
(
i
!=
iend
)
out
<<
", "
;
...
...
@@ -539,7 +539,7 @@ namespace boost {
else
out
<<
", "
;
first
=
false
;
out
<<
i
->
first
<<
"=
\"
"
<<
escape_dot_string
(
i
->
second
->
get_string
(
key
))
<<
"
\"
"
;
out
<<
i
->
first
<<
"="
<<
escape_dot_string
(
i
->
second
->
get_string
(
key
));
}
}
...
...
@@ -569,7 +569,7 @@ namespace boost {
else
out
<<
", "
;
first
=
false
;
out
<<
i
->
first
<<
"=
\"
"
<<
escape_dot_string
(
i
->
second
->
get_string
(
key
))
<<
"
\"
"
;
out
<<
i
->
first
<<
"="
<<
escape_dot_string
(
i
->
second
->
get_string
(
key
));
}
}
...
...
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