]> git.lyx.org Git - features.git/commitdiff
At least for now, this has to be done differently.
authorRichard Heck <rgheck@comcast.net>
Sat, 6 Jun 2009 01:36:04 +0000 (01:36 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 6 Jun 2009 01:36:04 +0000 (01:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29979 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/stdlists.inc
src/output_xhtml.cpp

index d50ee4f1111f681394f475a1e4e0b823822ff409..cfa828252f4fd7a2dfb4c90aa98a0b05fc06d6b5 100644 (file)
@@ -71,9 +71,10 @@ Style Description
        LabelFont
          Series              Bold
        EndFont
-       HTMLTag               dl
-       HTMLItem              dd
-       HTMLLabel             dt
+       HTMLTag               ol
+       HTMLItem              li
+       HTMLLabel             span
+       HTMLLabelAttr         class='desc'
 End
 
 
index 830764d2c8df6490fc6fcdfdb11d54a9faf43b56..67ae2cc3029a540f5fd04122ff8d801fddffee53 100644 (file)
@@ -245,11 +245,12 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf,
                        // One is that we are still in the environment in which we 
                        // started---which we will be if the depth is the same.
                        if (par->params().depth() == origdepth) {
+                               Layout const & cstyle = par->layout();
                                if (lastlay != 0) {
                                        closeItemTag(os, *lastlay);
                                        lastlay = 0;
                                }
-                               Layout const & cstyle = par->layout();
+                               bool const item_tag_opened = openItemTag(os, cstyle);
                                if (cstyle.labeltype == LABEL_MANUAL) {
                                        bool const label_tag_opened = openLabelTag(os, cstyle);
                                        sep = par->firstWordLyXHTML(os, runparams);
@@ -265,7 +266,6 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf,
                                        os << '\n';
                                }
 
-                               bool const item_tag_opened = openItemTag(os, cstyle);
                                par->simpleLyXHTMLOnePar(buf, os, runparams, 
                                        outerFont(distance(paragraphs.begin(), par), paragraphs), sep);
                                ++par;