+bool Paragraph::emptyTag() const
+{
+ for (pos_type i = 0; i < size(); ++i) {
+ if (isInset(i)) {
+ InsetBase const * inset = getInset(i);
+ InsetBase::Code lyx_code = inset->lyxCode();
+ if (lyx_code != InsetBase::TOC_CODE &&
+ lyx_code != InsetBase::INCLUDE_CODE &&
+ lyx_code != InsetBase::GRAPHICS_CODE &&
+ lyx_code != InsetBase::ERT_CODE &&
+ lyx_code != InsetBase::FLOAT_CODE &&
+ lyx_code != InsetBase::TABULAR_CODE) {
+ return false;
+ }
+ } else {
+ value_type c = getChar(i);
+ if (c != ' ' && c != '\t')
+ return false;
+ }
+ }
+ return true;
+}
+
+
+string Paragraph::getID(Buffer const & buf, OutputParams const & runparams) const