util: Migrated optionalBlankLine from text

This commit is contained in:
Paul Beckingham
2016-12-11 17:46:06 -05:00
parent 026a8aa9a1
commit ec84d0f372
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;
}
////////////////////////////////////////////////////////////////////////////////