mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
FontEditor: Don't append literal Line Feeds to clipboard metadata
Fixes newline breakage in ClipboardHistory when copying LF glyphs
This commit is contained in:
parent
8b3a92de37
commit
0664fbd584
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/0664fbd5846 Pull-request: https://github.com/SerenityOS/serenity/pull/6563
@ -68,7 +68,10 @@ void GlyphEditorWidget::copy_glyph()
|
||||
|
||||
StringBuilder glyph_builder;
|
||||
if (m_glyph < 128) {
|
||||
glyph_builder.append(m_glyph);
|
||||
if (m_glyph == 10)
|
||||
glyph_builder.append("LF");
|
||||
else
|
||||
glyph_builder.append(m_glyph);
|
||||
} else {
|
||||
glyph_builder.append(128 | 64 | (m_glyph / 64));
|
||||
glyph_builder.append(128 | (m_glyph % 64));
|
||||
|
Loading…
Reference in New Issue
Block a user