* Paragraph.cpp:

- do not embrace list items. According to the comment, 
	  this was only done to escape brackets, but brackets
	  are embraced anyway.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30112 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-06-15 15:57:54 +00:00
parent 9e9fdd57c3
commit 934308286d

View File

@ -1954,10 +1954,8 @@ bool Paragraph::latex(BufferParams const & bparams,
unsigned int column = 0;
if (body_pos > 0) {
// the optional argument is kept in curly brackets in
// case it contains a ']'
os << "[{";
column += 2;
os << '[';
column += 1;
basefont = getLabelFont(bparams, outerfont);
} else {
basefont = getLayoutFont(bparams, outerfont);
@ -2000,8 +1998,8 @@ bool Paragraph::latex(BufferParams const & bparams,
runningChange, Change(Change::UNCHANGED));
runningChange = Change(Change::UNCHANGED);
os << "}] ";
column +=3;
os << "] ";
column +=2;
}
if (style.isCommand()) {
os << '{';
@ -2187,7 +2185,7 @@ bool Paragraph::latex(BufferParams const & bparams,
// Needed if there is an optional argument but no contents.
if (body_pos > 0 && body_pos == size()) {
os << "}]~";
os << "]~";
return_value = false;
}