mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
5c54557350
Remove the trimming operation on LabelString, LabelStringAppendix, EndLabelString and LabelCounter. This trimming meant that quotes strings were not preserved, which is wrong. To preserve layouts, the Layout format has been updated to 64, so that layout2layout can remove extra spaces on existing strings, which ensures that behavior is unchanged for old layouts (courtesy of rgheck). It is now possible to re-add spaces in label strings where it makes sense. Fixes bug #10723.
51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
# The special "LyXList". Separated out for inclusion where the
|
|
# whole of stdlist.inc is not needed.
|
|
|
|
Format 64
|
|
|
|
Style Labeling
|
|
Category List
|
|
Margin Manual
|
|
LatexType List_Environment
|
|
LatexName lyxlist
|
|
NextNoindent 1
|
|
LabelSep xxx
|
|
ParSkip 0.4
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ParSep 0.5
|
|
Align Block
|
|
AlignPossible Block, Left
|
|
LabelType Manual
|
|
LabelString "00.00.0000"
|
|
HTMLTag ol
|
|
HTMLAttr class='lyxlist'
|
|
HTMLItem li
|
|
HTMLLabel span
|
|
HTMLLabelAttr class='lyxlist'
|
|
|
|
#define the environment lyxlist
|
|
Preamble
|
|
\newenvironment{lyxlist}[1]
|
|
{\begin{list}{}
|
|
{\settowidth{\labelwidth}{#1}
|
|
\setlength{\leftmargin}{\labelwidth}
|
|
\addtolength{\leftmargin}{\labelsep}
|
|
\renewcommand{\makelabel}[1]{##1\hfil}}}
|
|
{\end{list}}
|
|
EndPreamble
|
|
|
|
HTMLStyle
|
|
ol.lyxlist {
|
|
list-style-type: none;
|
|
}
|
|
li.labeling_item {
|
|
text-indent: -5em;
|
|
margin-left: 5em;
|
|
}
|
|
span.lyxlist {
|
|
margin-right: 1em;
|
|
}
|
|
EndHTMLStyle
|
|
End
|