mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Small fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2819 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2c5a232b08
commit
1c859f1629
@ -1,5 +1,7 @@
|
||||
2001-10-01 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* buffer.C (asciiParagraph): Treat '\\' as other chars.
|
||||
|
||||
* paragraph.C (asString): Do not ignore newline/hfill chars when
|
||||
copying to the clipboard.
|
||||
|
||||
|
10
src/buffer.C
10
src/buffer.C
@ -1890,10 +1890,6 @@ string const Buffer::asciiParagraph(Paragraph const * par,
|
||||
buffer << "\t";
|
||||
break;
|
||||
|
||||
case '\\':
|
||||
buffer << "\\";
|
||||
break;
|
||||
|
||||
default:
|
||||
if ((linelen > 0) && (currlinelen > (linelen - 10)) &&
|
||||
(c == ' ') && ((i + 2) < par->size()))
|
||||
@ -1909,11 +1905,11 @@ string const Buffer::asciiParagraph(Paragraph const * par,
|
||||
buffer << " ";
|
||||
currlinelen += (ltype_depth-depth)*2;
|
||||
}
|
||||
} else if (c != '\0')
|
||||
} else if (c != '\0') {
|
||||
buffer << c;
|
||||
else if (c == '\0')
|
||||
lyxerr[Debug::INFO] << "writeAsciiFile: NULL char in structure." << endl;
|
||||
++currlinelen;
|
||||
} else
|
||||
lyxerr[Debug::INFO] << "writeAsciiFile: NULL char in structure." << endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user