From c3c1ac0621c4986720f022ecaa4c2e7badce6f96 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 24 Apr 2015 12:49:26 -0400 Subject: [PATCH] Don't write \PassThruChars if it is empty. --- src/Layout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Layout.cpp b/src/Layout.cpp index be51756328..1e89433777 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -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: