mnikhil-git / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 0 forks source link

Missing text, and extra blank lines rendering long multiline text in SVG output #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

long unbroken text (e.g. function or variable names) causes some odd issues in 
the rendering of the SVG output.

What is the expected output? What do you see instead?

I'd expect this output. Deviations are noted with and arrow <---- like this.

19:26:43.751 AAAAAAA <--- wordwrapped in output but that's ok
BBBBB
CCCCCCCC
DDDDDDDDDDDDDDDDDDDD <--- missing in the output (nok)
EEEEEEEEE

FFFFFFFFFFFF
GGGGGGGGGGGGGGGGGGGGGGGG
HHHHHHHHHHHHHHH <--- extra line both before and after here in the output (nok)
IIIIIIIIIIIIII
JJJJJJJJJJJJJJJJJJJJJJJJ

What version of the product are you using? On what operating system?
0.19, Windows XP

Please provide any additional information below, including sample input
file:

Original issue reported on code.google.com by dunbar....@gmail.com on 21 Jan 2011 at 2:53

Attachments:

GoogleCodeExporter commented 8 years ago
Yup - there's a bug here.  I get extra blank lines which are definitely wrong.  
It looks like when it finds the long words it inserts an extra line for it, but 
the split fails to find a space so a blank line is inserted.  This can be seen 
in the PNG output I've attached too.  I guess it should maybe cut the word and 
hyphenate to make it look nicer and fit the box?

The missing DDDDDDDDDDDDDDDDDDDD line is interesting though.  Both gthumb and 
Eye of Gnome show the D's there, but Firefox doesn't.  I wonder if it's a 
problem with the line starting outside the clipping box.

Hopefully fixing the first issue should make the line wrap work and fix the 2nd.

Is hyphenation okay?

Original comment by Michael....@gmail.com on 1 Feb 2011 at 7:59

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, I guess hyphenation would be fine. Thanks!

Original comment by dunbar....@gmail.com on 2 Feb 2011 at 10:22

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r177.

Original comment by Michael....@gmail.com on 9 Feb 2011 at 9:19

GoogleCodeExporter commented 8 years ago
This should be fixed in SVN now.

The issue with the DDDD line being absent shouldn't occur as it will get split 
as needed to fit the box.  

Thanks for the report!

Mike

Original comment by Michael....@gmail.com on 9 Feb 2011 at 9:23