Spreadsheet: Fix rendering of documentation examples

s/String::format/String::formatted/ - the Markdown source was not being
formatted properly.
This commit is contained in:
Linus Groh 2020-10-09 23:19:58 +01:00 committed by Andreas Kling
parent 6f74eaed42
commit e7c53bee16
Notes: sideshowbarker 2024-07-19 01:56:48 +09:00

View file

@ -157,7 +157,7 @@ String HelpWindow::render(const GUI::ModelIndex& index)
if (!examples.is_empty()) {
markdown_builder.append("# EXAMPLES\n");
examples.for_each_member([&](auto& text, auto& description_value) {
markdown_builder.appendf("- {}\n\n```js\n{}\n```\n", description_value.to_string(), text);
markdown_builder.appendff("- {}\n\n```js\n{}\n```\n", description_value.to_string(), text);
});
}