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>
|
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
|
* paragraph.C (asString): Do not ignore newline/hfill chars when
|
||||||
copying to the clipboard.
|
copying to the clipboard.
|
||||||
|
|
||||||
|
12
src/buffer.C
12
src/buffer.C
@ -1889,11 +1889,7 @@ string const Buffer::asciiParagraph(Paragraph const * par,
|
|||||||
case Paragraph::META_HFILL:
|
case Paragraph::META_HFILL:
|
||||||
buffer << "\t";
|
buffer << "\t";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\\':
|
|
||||||
buffer << "\\";
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if ((linelen > 0) && (currlinelen > (linelen - 10)) &&
|
if ((linelen > 0) && (currlinelen > (linelen - 10)) &&
|
||||||
(c == ' ') && ((i + 2) < par->size()))
|
(c == ' ') && ((i + 2) < par->size()))
|
||||||
@ -1909,11 +1905,11 @@ string const Buffer::asciiParagraph(Paragraph const * par,
|
|||||||
buffer << " ";
|
buffer << " ";
|
||||||
currlinelen += (ltype_depth-depth)*2;
|
currlinelen += (ltype_depth-depth)*2;
|
||||||
}
|
}
|
||||||
} else if (c != '\0')
|
} else if (c != '\0') {
|
||||||
buffer << c;
|
buffer << c;
|
||||||
else if (c == '\0')
|
++currlinelen;
|
||||||
|
} else
|
||||||
lyxerr[Debug::INFO] << "writeAsciiFile: NULL char in structure." << endl;
|
lyxerr[Debug::INFO] << "writeAsciiFile: NULL char in structure." << endl;
|
||||||
++currlinelen;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user