]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.C
make dispatch_result_t ctor of DispatchResult explicit
[lyx.git] / src / sgml.C
index db91894847e2a061ccf60edacadefff47811cd64..cb6292f1ec28c47d49124d0d3a19cb674e090841 100644 (file)
@@ -21,6 +21,7 @@ using std::make_pair;
 
 using std::ostream;
 using std::pair;
+using std::string;
 
 
 namespace sgml {
@@ -114,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