FontEditor: Don't append literal Line Feeds to clipboard metadata

Fixes newline breakage in ClipboardHistory when copying LF glyphs
This commit is contained in:
thankyouverycool 2021-04-22 14:22:59 -04:00 committed by Andreas Kling
parent 8b3a92de37
commit 0664fbd584
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

View File

@ -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));