mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* src/Cursor.cpp:
- revert accidental commit in r18206. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18209 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
574b28db65
commit
b9350d4038
@ -1176,21 +1176,14 @@ docstring Cursor::selectionAsString(bool label) const
|
||||
if (startpit == endpit)
|
||||
return pars[startpit].asString(buffer, startpos, endpos, label);
|
||||
|
||||
odocstringstream ods;
|
||||
ods << "\n";
|
||||
// only add blank line if we're not in an ERT inset
|
||||
if (pars[startpit].ownerCode() != Inset::ERT_CODE)
|
||||
ods << "\n";
|
||||
docstring const parbreak = ods.str();
|
||||
|
||||
// First paragraph in selection
|
||||
docstring result = pars[startpit].
|
||||
asString(buffer, startpos, pars[startpit].size(), label) + parbreak;
|
||||
asString(buffer, startpos, pars[startpit].size(), label) + "\n\n";
|
||||
|
||||
// The paragraphs in between (if any)
|
||||
for (pit_type pit = startpit + 1; pit != endpit; ++pit) {
|
||||
Paragraph const & par = pars[pit];
|
||||
result += par.asString(buffer, 0, par.size(), label) + parbreak;
|
||||
result += par.asString(buffer, 0, par.size(), label) + "\n\n";
|
||||
}
|
||||
|
||||
// Last paragraph in selection
|
||||
|
Loading…
Reference in New Issue
Block a user