diff options
author | demostanis <demostanis@protonmail.com> | 2022-07-31 21:53:45 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-08-04 16:57:26 +0000 |
commit | 1ce23eb640dfb028e755a9d76188df64af5e1ffb (patch) | |
tree | af298cb5a1bd79bf3822b00d597c578423b9a984 /Userland/Libraries/LibMarkdown/Heading.cpp | |
parent | 55b7f8ab27b94af0a7daa49063c4d5db8271e61e (diff) | |
download | serenity-1ce23eb640dfb028e755a9d76188df64af5e1ffb.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibMarkdown/Heading.cpp')
-rw-r--r-- | Userland/Libraries/LibMarkdown/Heading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibMarkdown/Heading.cpp b/Userland/Libraries/LibMarkdown/Heading.cpp index 0c3f2f3de8..900ec87a50 100644 --- a/Userland/Libraries/LibMarkdown/Heading.cpp +++ b/Userland/Libraries/LibMarkdown/Heading.cpp @@ -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: |