- Configurable extra white space via "blanklines" configuration variable.

This commit is contained in:
Paul Beckingham 2008-06-07 13:23:39 -04:00
parent ccd2b9fc44
commit e025ecc3d4
3 changed files with 42 additions and 29 deletions

View file

@ -29,6 +29,9 @@
#include <string>
#include "task.h"
static const char* newline = "\n";
static const char* noline = "";
///////////////////////////////////////////////////////////////////////////////
void wrapText (
std::vector <std::string>& lines,
@ -283,3 +286,12 @@ std::string lowerCase (const std::string& input)
}
////////////////////////////////////////////////////////////////////////////////
const char* optionalBlankLine (Config& conf)
{
if (conf.get ("blanklines", true) == true)
return newline;
return noline;
}
////////////////////////////////////////////////////////////////////////////////