util: Migrated optionalBlankLine from text

This commit is contained in:
Paul Beckingham 2016-12-11 17:46:06 -05:00
parent eb1e35e84b
commit 87757fb36f
15 changed files with 21 additions and 22 deletions

View file

@ -60,6 +60,9 @@
extern Context context;
static const char* newline = "\n";
static const char* noline = "";
////////////////////////////////////////////////////////////////////////////////
static void signal_handler (int s)
{
@ -355,3 +358,9 @@ int strippedLength (const std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
const char* optionalBlankLine ()
{
return context.verbose ("blank") ? newline : noline;
}
////////////////////////////////////////////////////////////////////////////////