Skip to content

Conversation

@NHDaly
Copy link
Owner

@NHDaly NHDaly commented Oct 5, 2020

This escaping requirement was previously leaking into the implementation
of graph.go, by writing \n directly instead of "\n". This meant that
if it was displayed in a different program besides dot, it would have
been potentially incorrectly escaped.

Now, this commit moves all the escaping directly into dotgraph, which is
more encapsulated, and also allows us to escape other characters in the
name which need escaping.

This required adding a justify option to escapeForDot to preserve old behavior.
This allows tag newlines to stay center justified, and legend label
newlines to stay left justified, as they were before we started escaping
them for Dot.


This PR is a follow-up to google#564, opened here instead of google#568.

NHDaly added 3 commits October 5, 2020 10:20
This escaping requirement was previously leaking into the implementation
of `graph.go`, by writing `\n` directly instead of "\n". This meant that
if it was displayed in a different program besides `dot`, it would have
been potentially incorrectly escaped.

Now, this commit moves all the escaping directly into dotgraph, which is
more encapsulated, and also allows us to escape other characters in the
name which need escaping.
This allows tag newlines to stay center justified, and legend label
newlines to stay left justified, as they were before we started escaping
them for Dot.

Also ran gofmt
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2020

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@NHDaly NHDaly force-pushed the nhd-dotgraph-escape-labels branch 5 times, most recently from 28a8f81 to 9061b08 Compare October 24, 2020 20:54
@NHDaly
Copy link
Owner Author

NHDaly commented Feb 17, 2022

closing this stale PR

@NHDaly NHDaly closed this Feb 17, 2022
@NHDaly NHDaly deleted the nhd-dotgraph-escape-labels--escape-Tags branch February 17, 2022 04:50
@NHDaly NHDaly restored the nhd-dotgraph-escape-labels--escape-Tags branch February 17, 2022 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants