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

View file

@ -68,6 +68,9 @@ void GlyphEditorWidget::copy_glyph()
StringBuilder glyph_builder;
if (m_glyph < 128) {
if (m_glyph == 10)
glyph_builder.append("LF");
else
glyph_builder.append(m_glyph);
} else {
glyph_builder.append(128 | 64 | (m_glyph / 64));