From 8cb80185d515fe158a1858dd832ff9bc0f96e4a0 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 21 Jun 2009 19:06:07 +0100 Subject: Restored the --truncate option, added baseline test --- src/format.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/format.h') diff --git a/src/format.h b/src/format.h index 13dd0876..03ed28c7 100644 --- a/src/format.h +++ b/src/format.h @@ -107,12 +107,14 @@ class format_t : public noncopyable scoped_ptr elements; public: - enum elision_style_t { + static enum elision_style_t { TRUNCATE_TRAILING, TRUNCATE_MIDDLE, TRUNCATE_LEADING, ABBREVIATE - }; + } default_style; + + static bool default_style_changed; private: static element_t * parse_elements(const string& fmt); -- cgit v1.2.3