summaryrefslogtreecommitdiff
path: root/src/text_formatter.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-16 17:38:43 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-16 23:49:13 +0200
commit02dd03b4ef42db0a43b2011b5c34446f6f987c12 (patch)
tree1d78e3b1b5bc63cf38d72edc9cba485bd9727c0d /src/text_formatter.h
parentb33a97e3aa7dd3a0ddd3687762ff42a9a9e1079f (diff)
Extract StreamFormatter.
Diffstat (limited to 'src/text_formatter.h')
-rw-r--r--src/text_formatter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/text_formatter.h b/src/text_formatter.h
index df462576..8fdb0d89 100644
--- a/src/text_formatter.h
+++ b/src/text_formatter.h
@@ -19,20 +19,21 @@
*/
+#include "stream_formatter.h"
#include "verify_report.h"
namespace dcp {
-class TextFormatter : public Formatter
+class TextFormatter : public StreamFormatter
{
public:
TextFormatter(boost::filesystem::path file);
void heading(std::string const& text) override;
void subheading(std::string const& text) override;
- Wrap unordered_list() override;
+ std::unique_ptr<Formatter::Wrap> unordered_list() override;
void list_item(std::string const& text, boost::optional<std::string> type = {}) override;
std::function<std::string (std::string)> process_string() override;
std::function<std::string (std::string)> fixed_width() override;