Do not remove spaces of keys inside \cite

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5054 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-08-21 09:14:16 +00:00
parent 8f5f4a74ae
commit 128730e4c4
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-08-21 Dekel Tsur <dekelts@tau.ac.il>
* insetcite.C (latex): Remove spaces only after commmas.
2002-08-21 Lars Gullik Bjønnes <larsbj@gullik.net>
* insettext.C: remove NO_COMPABILITY stuff

View File

@ -373,8 +373,12 @@ int InsetCitation::latex(Buffer const * buffer, ostream & os,
string::const_iterator end = getContents().end();
// Paranoia check: make sure that there is no whitespace in here
string content;
char last = ',';
for (; it != end; ++it) {
if (*it != ' ') content += *it;
if (*it != ' ')
last = *it;
if (*it != ' ' || last != ',')
content += *it;
}
os << "{" << content << "}";