mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05: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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue