mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
output newline and hfill correctly, (bug 1148)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@7131 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5b495b3174
commit
60006a36fa
@ -1,3 +1,8 @@
|
||||
2003-06-06 José Matos <jamatos@fep.up.pt>
|
||||
|
||||
* buffer.C (simpleDocBookOnePar): output meta::newline and
|
||||
meta::hfill correctly, fixes bug #1148
|
||||
|
||||
2003-06-06 José Matos <jamatos@fep.up.pt>
|
||||
|
||||
* buffer.C (makeDocBookFile): fix bug #821
|
||||
|
22
src/buffer.C
22
src/buffer.C
@ -3030,9 +3030,11 @@ void Buffer::simpleDocBookOnePar(ostream & os,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (par->isInset(i)) {
|
||||
Inset * inset = par->getInset(i);
|
||||
char c = par->getChar(i);
|
||||
switch (c) {
|
||||
case Paragraph::META_INSET:
|
||||
{
|
||||
Inset const * inset = par->getInset(i);
|
||||
// don't print the inset in position 0 if desc_on == 3 (label)
|
||||
if (i || desc_on != 3) {
|
||||
if (style->latexparam() == "CDATA")
|
||||
@ -3041,8 +3043,18 @@ void Buffer::simpleDocBookOnePar(ostream & os,
|
||||
if (style->latexparam() == "CDATA")
|
||||
os << "<![CDATA[";
|
||||
}
|
||||
} else {
|
||||
char c = par->getChar(i);
|
||||
|
||||
break;
|
||||
}
|
||||
case Paragraph::META_NEWLINE:
|
||||
os << "\n";
|
||||
break;
|
||||
|
||||
case Paragraph::META_HFILL:
|
||||
os << " ";
|
||||
break;
|
||||
|
||||
default:
|
||||
bool ws;
|
||||
string str;
|
||||
boost::tie(ws, str) = sgml::escapeChar(c);
|
||||
|
@ -50,3 +50,5 @@ What's new
|
||||
|
||||
- convert old files (0.11 series) correctly, suppressing space
|
||||
between number and units [bug #763]
|
||||
|
||||
- output newline and hfill correctly, fixes bug #1148
|
Loading…
x
Reference in New Issue
Block a user