Whitespace

- Context::footnote and Context::header were accepting and displaying
  blank lines, which is silly.
This commit is contained in:
Paul Beckingham 2011-10-11 23:54:42 -04:00
parent b7ab366c71
commit 98c6a94625

View file

@ -590,13 +590,15 @@ void Context::updateXtermTitle ()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Context::header (const std::string& input) void Context::header (const std::string& input)
{ {
headers.push_back (input); if (input.length ())
headers.push_back (input);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Context::footnote (const std::string& input) void Context::footnote (const std::string& input)
{ {
footnotes.push_back (input); if (input.length ())
footnotes.push_back (input);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////