mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
revert r30112 (#5988).
See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg155843.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33191 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fc010d17cd
commit
c1e79cde53
@ -2004,8 +2004,10 @@ bool Paragraph::latex(BufferParams const & bparams,
|
|||||||
unsigned int column = 0;
|
unsigned int column = 0;
|
||||||
|
|
||||||
if (body_pos > 0) {
|
if (body_pos > 0) {
|
||||||
os << '[';
|
// the optional argument is kept in curly brackets in
|
||||||
column += 1;
|
// case it contains a ']'
|
||||||
|
os << "[{";
|
||||||
|
column += 2;
|
||||||
basefont = getLabelFont(bparams, outerfont);
|
basefont = getLabelFont(bparams, outerfont);
|
||||||
} else {
|
} else {
|
||||||
basefont = getLayoutFont(bparams, outerfont);
|
basefont = getLayoutFont(bparams, outerfont);
|
||||||
@ -2051,8 +2053,8 @@ bool Paragraph::latex(BufferParams const & bparams,
|
|||||||
runparams);
|
runparams);
|
||||||
runningChange = Change(Change::UNCHANGED);
|
runningChange = Change(Change::UNCHANGED);
|
||||||
|
|
||||||
os << "] ";
|
os << "}] ";
|
||||||
column +=2;
|
column +=3;
|
||||||
}
|
}
|
||||||
if (style.isCommand()) {
|
if (style.isCommand()) {
|
||||||
os << '{';
|
os << '{';
|
||||||
@ -2245,7 +2247,7 @@ bool Paragraph::latex(BufferParams const & bparams,
|
|||||||
|
|
||||||
// Needed if there is an optional argument but no contents.
|
// Needed if there is an optional argument but no contents.
|
||||||
if (body_pos > 0 && body_pos == size()) {
|
if (body_pos > 0 && body_pos == size()) {
|
||||||
os << "]~";
|
os << "}]~";
|
||||||
return_value = false;
|
return_value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user