mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
Paranoia check: make sure that there is no whitespace between the
citation keys. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2401 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
352730f20b
commit
25433c309d
@ -1,3 +1,8 @@
|
||||
2001-08-01 Angus Leeming <a.leeming@ic.ac.uk>
|
||||
|
||||
* insetcite.C (latex): Paranoia check. Make sure that there is no
|
||||
whitespace between the citation keys.
|
||||
|
||||
2001-07-31 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* insetcollapsable.h: removed inline variable and moved it over
|
||||
|
@ -90,7 +90,14 @@ int InsetCitation::latex(Buffer const * buffer, std::ostream & os,
|
||||
if (!getOptions().empty())
|
||||
os << "[" << getOptions() << "]";
|
||||
|
||||
os << "{" << getContents() << "}";
|
||||
// Paranoia check: make sure that there is no whitespace in here
|
||||
string content;
|
||||
for (string::const_iterator it = getContents().begin();
|
||||
it != getContents().end(); ++it) {
|
||||
if (*it != ' ') content += *it;
|
||||
}
|
||||
|
||||
os << "{" << content << "}";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user