From 89f5f92b7ebde3866ca229ad37460242b035531f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 5 May 2021 20:12:26 +0200 Subject: LibMarkdown: Convert a bunch of StringBuilder::appendf() => appendff() --- Userland/Libraries/LibMarkdown/List.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Libraries/LibMarkdown/List.cpp') diff --git a/Userland/Libraries/LibMarkdown/List.cpp b/Userland/Libraries/LibMarkdown/List.cpp index 04e385fcad..b23baed187 100644 --- a/Userland/Libraries/LibMarkdown/List.cpp +++ b/Userland/Libraries/LibMarkdown/List.cpp @@ -14,7 +14,7 @@ String List::render_to_html() const StringBuilder builder; const char* tag = m_is_ordered ? "ol" : "ul"; - builder.appendf("<%s>", tag); + builder.appendff("<{}>", tag); for (auto& item : m_items) { builder.append("
  • "); @@ -22,7 +22,7 @@ String List::render_to_html() const builder.append("
  • \n"); } - builder.appendf("\n", tag); + builder.appendff("\n", tag); return builder.build(); } @@ -35,7 +35,7 @@ String List::render_for_terminal(size_t) const for (auto& item : m_items) { builder.append(" "); if (m_is_ordered) - builder.appendf("%d. ", ++i); + builder.appendff("{}. ", ++i); else builder.append("* "); builder.append(item.render_for_terminal()); -- cgit v1.2.3