aivarsk / scruffy

Makes SVG shapes look hand-drawn and creates UML diagrams using yUML (http://yuml.me) syntax
319 stars 60 forks source link

Need to strip linefeeds when reading specfile from input file (-i option) #9

Open rtmie opened 10 years ago

rtmie commented 10 years ago

If spec is written in a file with newlines (for readability), relations are not rendered properly, e.g. the input file below:

This diff fixes it for me:

diff --git a/bin/suml b/bin/suml index 0a408c3..6fc62d6 100755 --- a/bin/suml +++ b/bin/suml @@ -51,10 +51,11 @@ if options.output_file: fout = open(options.output_file, 'wb')

if options.input_file:

[SomeClass| attribute1;

memberclass1; ] [OtherClass| attribute2; ] [SomeClass]++-[OtherClass]