]> git.lyx.org Git - features.git/commitdiff
fix bug 1979
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 22 Aug 2005 09:51:44 +0000 (09:51 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 22 Aug 2005 09:51:44 +0000 (09:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10404 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/ChangeLog
src/tex2lyx/text.C

index c9d6adc7fb1a92e932c220b2cc7f33c15eda0fcc..4a7a824ec8d737355f9589d65895556039c97ee1 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-19  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text.C (parse_text): Output \item in list environments that are
+       unknown to LyX (bug 1979)
+
 2005-07-30  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * text.C (parse_text): add forgotten \` accent.
index fef14701140db6bafc32d30489fef535457650ec..43339df7063bbb1b21bcf27bbfe7fa4abd9a4941 100644 (file)
@@ -1278,6 +1278,15 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        }
                        context.set_item();
                        context.check_layout(os);
+                       if (context.has_item) {
+                               // An item in an unknown list-like environment
+                               // FIXME: Do this in check_layout()!
+                               context.has_item = false;
+                               if (optarg)
+                                       handle_ert(os, "\\item", context);
+                               else
+                                       handle_ert(os, "\\item ", context);
+                       }
                        if (optarg) {
                                if (context.layout->labeltype != LABEL_MANUAL) {
                                        // lyx does not support \item[\mybullet]