]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCollapsable.cpp
Cosmetics
[features.git] / src / insets / InsetCollapsable.cpp
index ac1bc3a8e9a9211a6ed3072efae03a869e46ab9b..5eec355c68c4adb635f03185a2a69fd2e371b453 100644 (file)
@@ -28,6 +28,7 @@
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
+#include "output_xhtml.h"
 #include "paragraph_funcs.h"
 #include "ParagraphParameters.h"
 #include "sgml.h"
@@ -871,6 +872,19 @@ int InsetCollapsable::docbook(odocstream & os, OutputParams const & runparams) c
 }
 
 
+int InsetCollapsable::xhtml(odocstream & os, OutputParams const & runparams) const
+{
+       InsetLayout const & il = getLayout();
+       bool opened = false;
+       if (!undefined())
+               opened = html::openTag(os, il.htmltag(), il.htmlattr());
+       InsetText::xhtml(os, runparams);
+       if (opened && !undefined())
+               html::closeTag(os, il.htmltag());
+       return 0;
+}
+
+
 void InsetCollapsable::validate(LaTeXFeatures & features) const
 {
        features.useInsetLayout(getLayout());