]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyx_2_3.py
Improve a warning in lyx2lyx.
[features.git] / lib / lyx2lyx / lyx_2_3.py
index a2f37bc8d4354642c1678e92aad687470d0b6f05..fd029d557bd3b39b27df64f24829b549a51ea3b2 100644 (file)
@@ -1837,6 +1837,9 @@ def convert_dashligatures(document):
                 document.warning("Malformed LyX document: "
                                 "Can't find layout at line %d" % i)
                 continue
+            if not layoutname:
+                document.warning("Malformed LyX document: "
+                                 "Missing layout name on line %d"%start)
             if layoutname == "LyX-Code":
                 i = end
                 continue