Bugfix: Anonymous line templates that did not have any additional template modifiers were treated as named line templates whose name was the empty string, causing such templates to be chained as one long line template.

Originally committed to SVN as r1595.
This commit is contained in:
Niels Martin Hansen 2007-10-04 23:30:52 +00:00
parent 4bb88670bb
commit c9e26c0cf3

View file

@ -154,6 +154,9 @@ function parse_template(meta, styles, line, templates, mods)
break
end
end
if id == "" then
id = nil
end
if id then
rest = t
end