mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
0675c802a7
commit
04d6290966
@ -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
|
||||
|
||||
|
@ -33,7 +33,6 @@ Style Abstract
|
||||
Series Bold
|
||||
Size Large
|
||||
EndFont
|
||||
HTMLLabel div
|
||||
HTMLLabelFirst 1
|
||||
HTMLForceCSS 1
|
||||
HTMLStyle
|
||||
|
@ -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_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user