Label tag should default to div for "top environment" labels.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35394 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-09-15 14:23:32 +00:00
parent 0675c802a7
commit 04d6290966
3 changed files with 49 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
\lyxformat 398
\lyxformat 400
\begin_document
\begin_header
\textclass scrbook
@ -101,6 +101,7 @@ End
\use_amsmath 0
\use_esint 0
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
@ -16955,6 +16956,46 @@ span
\end_inset
, unless
\begin_inset Flex CharStyle:Code
status collapsed
\begin_layout Plain Layout
LabelType
\end_layout
\end_inset
is either
\begin_inset Flex CharStyle:Code
status collapsed
\begin_layout Plain Layout
Top_Environment
\end_layout
\end_inset
or
\begin_inset Flex CharStyle:Code
status collapsed
\begin_layout Plain Layout
Centered_Top_Environment
\end_layout
\end_inset
, in which case it defaults to
\begin_inset Flex CharStyle:Code
status collapsed
\begin_layout Plain Layout
div
\end_layout
\end_inset
.
\end_layout

View File

@ -33,7 +33,6 @@ Style Abstract
Series Bold
Size Large
EndFont
HTMLLabel div
HTMLLabelFirst 1
HTMLForceCSS 1
HTMLStyle

View File

@ -957,8 +957,13 @@ string const & Layout::htmlitemattr() const
string const & Layout::htmllabeltag() const
{
if (htmllabeltag_.empty())
htmllabeltag_ = "span";
if (htmllabeltag_.empty()) {
if (labeltype != LABEL_TOP_ENVIRONMENT &&
labeltype != LABEL_CENTERED_TOP_ENVIRONMENT)
htmllabeltag_ = "span";
else
htmllabeltag_ = "div";
}
return htmllabeltag_;
}