mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibMarkdown: Fix coloring of the first line
The escape sequence to color a section's name was separated by a newline from the section's name, making less(1) trim the escape sequence off when the section's name was on the first line.
This commit is contained in:
parent
55b7f8ab27
commit
1ce23eb640
Notes:
sideshowbarker
2024-07-17 08:26:13 +09:00
Author: https://github.com/demostanis
Commit: 1ce23eb640
Pull-request: https://github.com/SerenityOS/serenity/pull/14723
Reviewed-by: https://github.com/bgianfo
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ String Heading::render_for_terminal(size_t) const
|
|||
{
|
||||
StringBuilder builder;
|
||||
|
||||
builder.append("\033[0;31;1m\n"sv);
|
||||
builder.append("\n\033[0;31;1m"sv);
|
||||
switch (m_level) {
|
||||
case 1:
|
||||
case 2:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue