]> git.lyx.org Git - lyx.git/commitdiff
Don't write \PassThruChars if it is empty.
authorRichard Heck <rgheck@lyx.org>
Fri, 24 Apr 2015 16:49:26 +0000 (12:49 -0400)
committerRichard Heck <rgheck@lyx.org>
Fri, 24 Apr 2015 16:49:26 +0000 (12:49 -0400)
src/Layout.cpp

index be51756328fa4c71bd41d5de27b5634f0c854ba6..1e8943377716c393cbefbeff80cb3ab64fa40f0a 100644 (file)
@@ -1286,7 +1286,8 @@ void Layout::write(ostream & os) const
                os << "\tLabelCounter \"" << to_utf8(counter) << "\"\n";
        os << "\tFreeSpacing " << free_spacing << '\n';
        os << "\tPassThru " << pass_thru << '\n';
-       os << "\tPassThruChars " << to_utf8(pass_thru_chars) << '\n';
+       if (!pass_thru_chars.empty())
+               os << "\tPassThruChars " << to_utf8(pass_thru_chars) << '\n';
        os << "\tParbreakIsNewline " << parbreak_is_newline << '\n';
        switch (spacing.getSpace()) {
        case Spacing::Double: