This inner tag thing turns out to be a bad idea, since so few things are

allowed to go inside <span>. Probably we don't need it anyway.

The User's Guide now exports as valid XHTML 1.1, according to the XHTML 
validator at w3.org. Of course, in the present state of the code, a lot
of insets aren't being exported at all, since they've been disabled. So
there is work to do. But this is a serious start now.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32108 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-19 22:58:32 +00:00
parent b30bcc3860
commit ed7172226c

View File

@ -619,15 +619,9 @@ ParagraphList::const_iterator makeEnvironmentHtml(Buffer const & buf,
} }
if (labelfirst) if (labelfirst)
openItemTag(xs, style); openItemTag(xs, style);
else
// FIXME This should probalby be put into the layout file rather
// than hardcoded.
xs << StartTag("span", "class='" + to_utf8(style.name()) + "_inneritem'");
} }
par->simpleLyXHTMLOnePar(buf, xs, runparams, par->simpleLyXHTMLOnePar(buf, xs, runparams,
text.outerFont(distance(begin, par)), sep); text.outerFont(distance(begin, par)), sep);
if (!isNormalEnv(style) && !labelfirst)
xs << EndTag("span");
++par; ++par;
// We may not want to close the tag yet, in particular, // We may not want to close the tag yet, in particular,
// if we're not at the end... // if we're not at the end...