From: Dekel Tsur Date: Wed, 21 Aug 2002 09:14:16 +0000 (+0000) Subject: Do not remove spaces of keys inside \cite X-Git-Tag: 1.6.10~18508 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=128730e4c4f7a7f7926f0895addcc62e72106295;p=lyx.git 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 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index db2c69af6e..73bd5ad5df 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2002-08-21 Dekel Tsur + + * insetcite.C (latex): Remove spaces only after commmas. + 2002-08-21 Lars Gullik Bjønnes * insettext.C: remove NO_COMPABILITY stuff diff --git a/src/insets/insetcite.C b/src/insets/insetcite.C index 7cefcfa783..0105ddac36 100644 --- a/src/insets/insetcite.C +++ b/src/insets/insetcite.C @@ -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 << "}";