X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-stream.cc;h=fa6ec8c7a0296239aec1b9020967ca23148d769e;hb=0d22357ccd02d1d3ec5c844c407e4d4a72375b63;hp=f7844a8995a7da4f2adddb36c08320c78fd4c5ed;hpb=3a0e9efb7f067e5b334ba0596b95e15d96d7cc49;p=lilypond.git diff --git a/lily/paper-stream.cc b/lily/paper-stream.cc index f7844a8995..fa6ec8c7a0 100644 --- a/lily/paper-stream.cc +++ b/lily/paper-stream.cc @@ -25,7 +25,7 @@ Paper_stream::Paper_stream (String filename) error (_f ("Can't open file: `%s'", filename)); nest_level = 0; line_len_i_ = 0; - outputting_comment=false; + outputting_comment_b_=false; } Paper_stream::~Paper_stream () @@ -46,13 +46,13 @@ Paper_stream::operator << (String s) { for (char const *cp = s.ch_C (); *cp; cp++) { - if (outputting_comment) + if (outputting_comment_b_) { *os << *cp; if (*cp == '\n') { - outputting_comment=false; - + outputting_comment_b_=false; + line_len_i_ =0; } continue; } @@ -60,7 +60,7 @@ Paper_stream::operator << (String s) switch (*cp) { case '%': - outputting_comment = true; + outputting_comment_b_ = true; *os << *cp; break; case '{': @@ -108,6 +108,7 @@ Paper_stream::break_line () { *os << '\n'; *os << to_str (' ', nest_level); + outputting_comment_b_ = false; line_len_i_ = 0; }