mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00: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:
committed by
Andreas Kling
parent
8b3a92de37
commit
0664fbd584
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user