From 2c5a232b08aa77835f3cc7e5a0f7b9bc8ac507f1 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Sun, 30 Sep 2001 22:24:49 +0000 Subject: [PATCH] Do not ignore newline/hfill chars when copying to the clipboard. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2818 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/paragraph.C | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index df1b0ac88a..7b45714a02 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-10-01 Dekel Tsur + + * paragraph.C (asString): Do not ignore newline/hfill chars when + copying to the clipboard. + 2001-09-29 Dekel Tsur * paragraph_pimpl.C (simpleTeXSpecialChars): Call to textrow.start diff --git a/src/paragraph.C b/src/paragraph.C index 25357226a4..9ecffaf0e9 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -1951,6 +1951,10 @@ string const Paragraph::asString(Buffer const * buffer, value_type const c = getUChar(buffer->params, i); if (IsPrintable(c)) ost << c; + else if (c == META_NEWLINE) + ost << '\n'; + else if (c == META_HFILL) + ost << '\t'; else if (c == META_INSET) { getInset(i)->ascii(buffer, ost); } -- 2.39.5