Don't write \PassThruChars if it is empty.

This commit is contained in:
Richard Heck 2015-04-24 12:49:26 -04:00
parent f2e759d499
commit c3c1ac0621

View 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: