Code Cleanup

- Implemented Context::color to hide the color override details,
  then integrated it.
This commit is contained in:
Paul Beckingham 2011-05-01 11:52:23 -04:00
parent b0ff1ff55b
commit 1506ee67f4
8 changed files with 84 additions and 111 deletions

View file

@ -59,6 +59,8 @@ public:
int getWidth (); // determine terminal width
int getHeight (); // determine terminal height
bool color (); // TTY or <other>?
void header (const std::string&); // Header message sink
void footnote (const std::string&); // Footnote message sink
void debug (const std::string&); // Debug message sink
@ -96,6 +98,7 @@ public:
std::vector <std::string> tagRemovals;
Hooks hooks;
DOM dom;
bool use_color;
std::vector <std::string> headers;
std::vector <std::string> footnotes;