]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.C
make dispatch_result_t ctor of DispatchResult explicit
[lyx.git] / src / sgml.C
index 6309fa0b2e19a9b038e08f55f650ba279c462269..cb6292f1ec28c47d49124d0d3a19cb674e090841 100644 (file)
@@ -115,4 +115,21 @@ int closeTag(ostream & os, Paragraph::depth_type depth,
        return !mixcont;
 }
 
+
+unsigned int closeEnvTags(ostream & ofs, bool mixcont,
+                       string const & environment_inner_depth,
+                       lyx::depth_type total_depth)
+{
+       unsigned int lines;
+       if (environment_inner_depth != "!-- --") {
+               string item_name= "listitem";
+               lines += closeTag(ofs, total_depth, mixcont, item_name);
+               if (environment_inner_depth == "varlistentry")
+                       lines += closeTag(ofs, total_depth, mixcont,
+                               environment_inner_depth);
+       }
+       return lines;
+}
+
+
 } // namespace sgml