Fixing errors when parsing multiline outputs of xdotdata#89
Open
jimon wants to merge 1 commit intoxyz2tex:masterfrom
Open
Fixing errors when parsing multiline outputs of xdotdata#89jimon wants to merge 1 commit intoxyz2tex:masterfrom
jimon wants to merge 1 commit intoxyz2tex:masterfrom
Conversation
Contributor
|
It looks like this is a symptom of the Popen not specifying text=True. These number parsing bugs are all over the place not just the one in question and removing the extra whitespace is not the ideal strategy. The stdout should be opened in text mode not binary mode as the code expects. Therefore this PR should be changed based on this though Python 2/3 versioning etc needs to be checked to see when the parameter was added and how its default worked, etc. encoding was added in Python 3.6 and text in Python 3.7. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On my Windows 10 computer with Graphviz 2.49.1 under ConEmu (not sure if this is relevant) translating a simple dot file via dot2texi:
Renders the following output from xdotdata:
Which in result fails in dot2tex as following:
My PR might be fixing just symptoms of the bigger issue with dot2tex parsing, but at least it unblocks me for now.
Let me know if it would be better to fix it in another place.