summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown/List.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-05 20:12:26 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-05 22:17:33 +0200
commit89f5f92b7ebde3866ca229ad37460242b035531f (patch)
treece8dd2e2b7cd7f8a9be9a423c2909629668bcf96 /Userland/Libraries/LibMarkdown/List.cpp
parentbeae2d5caa489f93abe95be603ff741fc524007a (diff)
downloadserenity-89f5f92b7ebde3866ca229ad37460242b035531f.zip
LibMarkdown: Convert a bunch of StringBuilder::appendf() => appendff()
Diffstat (limited to 'Userland/Libraries/LibMarkdown/List.cpp')
-rw-r--r--Userland/Libraries/LibMarkdown/List.cpp6
1 files changed, 3 insertions, 3 deletions
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("<li>");
@@ -22,7 +22,7 @@ String List::render_to_html() const
builder.append("</li>\n");
}
- builder.appendf("</%s>\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());