From 0664fbd58462cafd1277290814ca34652154cd74 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Thu, 22 Apr 2021 14:22:59 -0400 Subject: [PATCH] FontEditor: Don't append literal Line Feeds to clipboard metadata Fixes newline breakage in ClipboardHistory when copying LF glyphs --- Userland/Applications/FontEditor/GlyphEditorWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp index c7307cad79..753e25a69f 100644 --- a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp +++ b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp @@ -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));