diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-16 17:38:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-16 23:49:13 +0200 |
| commit | 02dd03b4ef42db0a43b2011b5c34446f6f987c12 (patch) | |
| tree | 1d78e3b1b5bc63cf38d72edc9cba485bd9727c0d /src/text_formatter.h | |
| parent | b33a97e3aa7dd3a0ddd3687762ff42a9a9e1079f (diff) | |
Extract StreamFormatter.
Diffstat (limited to 'src/text_formatter.h')
| -rw-r--r-- | src/text_formatter.h | 5 |
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; |
