Skip to content

Commit

Permalink
Spreadsheet: Make function examples easier to read
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
roughjericho authored and bgianfo committed Mar 1, 2022
1 parent f1e6b05 commit 8dd08a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Userland/Applications/Spreadsheet/HelpWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
}

Expand Down

0 comments on commit 8dd08a1

Please sign in to comment.