mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
8f5f4a74ae
commit
128730e4c4
@ -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>
|
2002-08-21 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* insettext.C: remove NO_COMPABILITY stuff
|
* insettext.C: remove NO_COMPABILITY stuff
|
||||||
|
@ -373,8 +373,12 @@ int InsetCitation::latex(Buffer const * buffer, ostream & os,
|
|||||||
string::const_iterator end = getContents().end();
|
string::const_iterator end = getContents().end();
|
||||||
// Paranoia check: make sure that there is no whitespace in here
|
// Paranoia check: make sure that there is no whitespace in here
|
||||||
string content;
|
string content;
|
||||||
|
char last = ',';
|
||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
if (*it != ' ') content += *it;
|
if (*it != ' ')
|
||||||
|
last = *it;
|
||||||
|
if (*it != ' ' || last != ',')
|
||||||
|
content += *it;
|
||||||
}
|
}
|
||||||
|
|
||||||
os << "{" << content << "}";
|
os << "{" << content << "}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user