+ if (undefined())
+ return InsetText::xhtml(os, runparams);
+
+ bool const opened = html::openTag(os, il.htmltag(), il.htmlattr());
+ if (!il.counter().empty()) {
+ // FIXME Master buffer?
+ LYXERR0(il.counter());
+ Counters & cntrs = buffer().params().documentClass().counters();
+ cntrs.step(il.counter());
+ if (!il.htmllabel().empty())
+ os << cntrs.counterLabel(translateIfPossible(from_ascii(il.htmllabel())));
+ }
+ bool innertag_opened = false;
+ if (!il.htmlinnertag().empty())
+ innertag_opened = html::openTag(os, il.htmlinnertag(), il.htmlinnerattr());