Improve subscript handling in pret-lam.
[matthijs/master-project/report.git] / pret-trans.lua
index ac1b525946364600d9bff3616f14ec6539921cd8..238a4e5c1d9e798dd9dddbfa3d6dea552b9aa361 100644 (file)
@@ -91,7 +91,11 @@ function vis.end_of_display()
             break
         end
     end
-   
+  
+    if not len then
+        error("No horizontal separator found in:\n" .. table.concat(lines, "\n"))
+    end
+
     -- Split the input in three parts. Stuff before the line, stuff
     -- after the line, stuff to the right of the line.
     before, after, rights = {}, {}, {}