* src/output_plaintext.C: save two *.po entries;

output label+space only if label is not empty


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16780 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-01-20 16:14:39 +00:00
parent 9f74aa4fe2
commit 6b39c832ce

View File

@ -152,7 +152,7 @@ void writePlaintextParagraph(Buffer const & buf,
os << _("Abstract") << "\n\n";
currlinelen = 0;
} else {
docstring const abst = _("Abstract: ");
docstring const abst = _("Abstract") + from_ascii(": ");
os << abst;
currlinelen += abst.length();
}
@ -164,7 +164,7 @@ void writePlaintextParagraph(Buffer const & buf,
os << _("References") << "\n\n";
currlinelen = 0;
} else {
docstring const refs = _("References: ");
docstring const refs = _("References") + from_ascii(": ");
os << refs;
currlinelen += refs.length();
}
@ -174,14 +174,16 @@ void writePlaintextParagraph(Buffer const & buf,
default: {
docstring const label = par.params().labelString();
os << label << ' ';
currlinelen += label.length() + 1;
if (!label.empty()) {
os << label << ' ';
currlinelen += label.length() + 1;
}
break;
}
}
if (!currlinelen) {
if (currlinelen == 0) {
pair<int, docstring> p = addDepth(depth, ltype_depth);
os << p.second;
currlinelen += p.first;