backport r30112:

Author: spitz
	Date: Mon Jun 15 17:57:54 2009
	New Revision: 30112
	URL: http://www.lyx.org/trac/changeset/30112

	Log:
	* 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/branches/BRANCH_1_6_X@31271 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-09-04 11:21:25 +00:00
parent f9834b6b20
commit 5be07da6e5
2 changed files with 7 additions and 9 deletions

View File

@ -1960,10 +1960,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);
@ -2008,8 +2006,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 << '{';
@ -2195,7 +2193,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;
}

View File

@ -54,10 +54,10 @@ What's new
This is a last resort to try to avoid data loss.
- Fix support for polytonic Greek with multiple diacritics (bug 5976).
- Do not unnecessarily enquote brackets in the LaTeX output (bug 5988).
* USER INTERFACE
- Sort document classes case insensitively (bug 1492).