From b8743dd2ed60ef2b90f29cb7e7bada61a6c0422a Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 19 Nov 2009 22:41:31 +0000 Subject: [PATCH] The default tag for an InsetLayout should depend upon MultiPar. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32104 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/configure.py | 4 ++-- lib/layouts/stdinsets.inc | 5 ----- src/insets/InsetLayout.cpp | 2 +- src/output_xhtml.cpp | 6 ------ 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index 359a59c1c5..71b0dcce39 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -513,9 +513,9 @@ def checkFormatEntries(dtl_tools): \Format textparagraph txt "Plain Text, Join Lines" "" "" "%%" "document"''' ]) # path, xhtmlview = checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'], - rc_entry = [r'\Format xhtml xhtml "LyX HTML" "" "%%" "" "document"']) + rc_entry = [r'\Format xhtml xhtml "LyX HTML" X "%%" "" "document"']) if xhtmlview == "": - addToRC(r'\Format xhtml xhtml "LyX HTML" "" "" "" "document"') + addToRC(r'\Format xhtml xhtml "LyX HTML" X "" "" "document"') # checkEditor('a BibTeX editor', ['sensible-editor', 'jabref', 'JabRef', \ 'pybliographic', 'bibdesk', 'gbib', 'kbib', \ diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index 9b4014a00b..064544296f 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -77,7 +77,6 @@ InsetLayout Marginal EndFont MultiPar true NeedProtect true - HTMLTag div HTMLStyle div.marginal { border: 2px solid black; @@ -107,7 +106,6 @@ InsetLayout Foot Size Small EndFont MultiPar true - HTMLTag div HTMLLabel \arabic{footnote} HTMLInnerTag div HTMLStyle @@ -153,7 +151,6 @@ InsetLayout Note:Note Size Small EndFont MultiPar true - HTMLTag div HTMLIsBlock false # FIXME HTML Need CSS End @@ -176,7 +173,6 @@ InsetLayout Note:Greyedout padding-right: 1ex; } EndHTMLStyle - HTMLTag div HTMLIsBlock false End @@ -286,7 +282,6 @@ InsetLayout Float Size Small EndFont MultiPar true - HTMLTag div End InsetLayout Wrap diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index 41180c4a0c..f2b701dfb8 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -354,7 +354,7 @@ InsetLayout::InsetLyXType translateLyXType(std::string const & str) string const & InsetLayout::htmltag() const { if (htmltag_.empty()) - htmltag_ = "span"; + htmltag_ = multipar_ ? "div" : "span"; return htmltag_; } diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp index 2db915cd94..01d57218b2 100644 --- a/src/output_xhtml.cpp +++ b/src/output_xhtml.cpp @@ -619,15 +619,9 @@ ParagraphList::const_iterator makeEnvironmentHtml(Buffer const & buf, } if (labelfirst) 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, text.outerFont(distance(begin, par)), sep); - if (!isNormalEnv(style) && !labelfirst) - xs << EndTag("span"); ++par; // We may not want to close the tag yet, in particular, // if we're not at the end... -- 2.39.2