From 98c6a9462550112773f924698713209fd227436c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 11 Oct 2011 23:54:42 -0400 Subject: [PATCH] Whitespace - Context::footnote and Context::header were accepting and displaying blank lines, which is silly. --- src/Context.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index e135186d1..7c4539ac6 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -590,13 +590,15 @@ void Context::updateXtermTitle () //////////////////////////////////////////////////////////////////////////////// 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) { - footnotes.push_back (input); + if (input.length ()) + footnotes.push_back (input); } ////////////////////////////////////////////////////////////////////////////////