From 8dd08a110368ec53ec636a8b26f667ae5db188f5 Mon Sep 17 00:00:00 2001 From: roughjericho <32465342+roughjericho@users.noreply.github.com> Date: Sun, 27 Feb 2022 20:51:59 -0600 Subject: [PATCH] Spreadsheet: Make function examples easier to read Up until now, the Spreadsheet function examples appeared below their descriptions. Let's swap them to make it clearer which JS example goes to which description. --- Userland/Applications/Spreadsheet/HelpWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/Spreadsheet/HelpWindow.cpp b/Userland/Applications/Spreadsheet/HelpWindow.cpp index 58fe6a4bcc..1b24930cc4 100644 --- a/Userland/Applications/Spreadsheet/HelpWindow.cpp +++ b/Userland/Applications/Spreadsheet/HelpWindow.cpp @@ -183,8 +183,8 @@ String HelpWindow::render(StringView key) VERIFY(examples.is_object()); markdown_builder.append("# EXAMPLES\n"); examples.as_object().for_each_member([&](auto& text, auto& description_value) { - dbgln("- {}\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); + dbgln("```js\n{}\n```\n\n- {}\n", text, description_value.to_string()); + markdown_builder.appendff("```js\n{}\n```\n\n- {}\n", text, description_value.to_string()); }); }