diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-15 18:29:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-15 18:29:26 +0100 |
| commit | 484195d6f27c37053b77822330a73359e00cd254 (patch) | |
| tree | 73aba4133395e0beaa3f27a09c4f7ab1bfe371b5 /src/text_formatter.cc | |
| parent | 002ca1461d2f57df3f740d1e3c5373c3f2fdc54c (diff) | |
Diffstat (limited to 'src/text_formatter.cc')
| -rw-r--r-- | src/text_formatter.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/text_formatter.cc b/src/text_formatter.cc index a147ea83..55f2e84d 100644 --- a/src/text_formatter.cc +++ b/src/text_formatter.cc @@ -22,7 +22,9 @@ #include "text_formatter.h" +using std::string; using std::unique_ptr; +using std::vector; using namespace dcp; @@ -57,7 +59,7 @@ TextFormatter::unordered_list() void -TextFormatter::list_item(std::string const& text, boost::optional<std::string> type) +TextFormatter::list_item(std::string const& text, boost::optional<std::string> type, vector<string> const& details) { LIBDCP_UNUSED(type); for (int i = 0; i < _indent * 2; ++i) { @@ -65,6 +67,10 @@ TextFormatter::list_item(std::string const& text, boost::optional<std::string> t } _file.puts("* "); print(text); + for (auto const& detail: details) { + _file.puts(" - "); + print(detail); + } } |
