-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Printed SVG image contains newline cutting through XML tags #9514
Closed
1 task done
Comments
In There goes const Int_t kMaxBuffer = 250; |
This is not an area where I would call myself an expert, by far. However, I have a naive observation: wouldn't the fix just consist in raising the limit of kMaxBuffer to something far higher than 250 and maybe add a check to that number to stop the svg production if the string is longer than that limit? |
Fix here: #14590 |
Cool! |
PR Merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When plotting to SVG file the way
The produced SVG file is occasionally broken due to the newline character being inserted to the middle of the closing XML tag.
The error might be caused by certain kind of 250-character-per-line limit.
Expected behavior
The newline should be inserted somewhere before the closing XML tag.
Please don't remove all the new lines just to workaround this bug. It is great to have readable SVG outputs.
To Reproduce
Reproduce.C
$ root -l -q 'Reproduce.C++("path/to/hsimple.root")'
hpxLongTitle.svg
G
for vim)Setup
Additional context
The actual content of that supercali-title in my use case is a JSON string without any space character.
The generated SVG file (add the .txt suffix to workaround GitHub's limitation):
hpxLongTitle.svg.txt
The text was updated successfully, but these errors were encountered: