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:
José Matox 2003-06-06 19:17:59 +00:00
parent 5b495b3174
commit 60006a36fa
3 changed files with 24 additions and 5 deletions

View File

@ -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

View File

@ -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);

View File

@ -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