mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
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.
This commit is contained in:
parent
f1e6b05e98
commit
8dd08a1103
Notes:
sideshowbarker
2024-07-17 18:06:03 +09:00
Author: https://github.com/roughjericho Commit: https://github.com/SerenityOS/serenity/commit/8dd08a1103 Pull-request: https://github.com/SerenityOS/serenity/pull/12812
@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user