]> git.lyx.org Git - features.git/commitdiff
Do not ignore newline/hfill chars when copying to the clipboard.
authorDekel Tsur <dekelts@tau.ac.il>
Sun, 30 Sep 2001 22:24:49 +0000 (22:24 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Sun, 30 Sep 2001 22:24:49 +0000 (22:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2818 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/paragraph.C

index df1b0ac88acfbd836bfb0aae0ea9c0e02e4c07d2..7b45714a02758f97ee14b2600c832081dfe9cc82 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-01  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * paragraph.C (asString): Do not ignore newline/hfill chars when
+       copying to the clipboard.
+
 2001-09-29  Dekel Tsur  <dekelts@tau.ac.il>
 
        * paragraph_pimpl.C (simpleTeXSpecialChars): Call to textrow.start
index 25357226a4a8b6be6e94c41ebc7372eccf34c0e1..9ecffaf0e9ef1273fa961d11e9855f23f8506195 100644 (file)
@@ -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);
                }