]> git.lyx.org Git - features.git/commitdiff
fix output of description/labeling \item when there's no trailing text
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 11 Apr 2005 15:09:54 +0000 (15:09 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 11 Apr 2005 15:09:54 +0000 (15:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9806 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/paragraph.C

index 216b4851b3eacde02068801bccc92a6c0b7ac060..86b8a108e3cfb4ad8c993eb6b6ebbccd69895cb0 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-11  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * paragraph.C (simpleTeXOnePar): add missing '}' in LaTeX
+       output of \item arguments without trailing text.
+
 2005-04-06  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * FontIterator.C (operator*): avoid a copy of the font.
index 28471576219e4313967b06f6ce01cfc9e86123f9..6de1458d6297f7f3b9469caf18d938e4a6f3ddf5 100644 (file)
@@ -1069,7 +1069,7 @@ bool Paragraph::simpleTeXOnePar(Buffer const & buf,
 
        // Needed if there is an optional argument but no contents.
        if (body_pos > 0 && body_pos == size()) {
-               os << "]~";
+               os << "}]~";
                return_value = false;
        }