@@ -834,18 +834,18 @@ def test_latex_show_urls_is_inline(app, status, warning):
834
834
'Footnote inside footnote\n %\n \\ end{footnotetext}\\ ignorespaces' ) in result
835
835
assert ('\\ sphinxhref{http://sphinx-doc.org/~test/}{URL including tilde} '
836
836
'(http://sphinx\\ sphinxhyphen{}doc.org/\\ textasciitilde{}test/)' ) in result
837
- assert ('\\ item[ {\\ sphinxhref{http://sphinx-doc.org/}{URL in term} '
838
- '(http://sphinx\\ sphinxhyphen{}doc.org/)}] '
839
- '\\ leavevmode \ n\\ sphinxAtStartPar\n Description' in result )
840
- assert ('\\ item[ {Footnote in term \\ sphinxfootnotemark[6]}] '
841
- '\\ leavevmode %\n \\ begin{footnotetext}[6]'
837
+ assert ('\\ sphinxlineitem {\\ sphinxhref{http://sphinx-doc.org/}{URL in term} '
838
+ '(http://sphinx\\ sphinxhyphen{}doc.org/)}'
839
+ '\n \\ sphinxAtStartPar\n Description' in result )
840
+ assert ('\\ sphinxlineitem {Footnote in term \\ sphinxfootnotemark[6]}'
841
+ '%\n \\ begin{footnotetext}[6]'
842
842
'\\ phantomsection\\ label{\\ thesphinxscope.6}%\n '
843
843
'\\ sphinxAtStartFootnote\n '
844
844
'Footnote in term\n %\n \\ end{footnotetext}\\ ignorespaces '
845
845
'\n \\ sphinxAtStartPar\n Description' ) in result
846
- assert ('\\ item[ {\\ sphinxhref{http://sphinx-doc.org/}{Term in deflist} '
847
- '(http://sphinx\\ sphinxhyphen{}doc.org/)}] '
848
- '\\ leavevmode \ n\\ sphinxAtStartPar\n Description' ) in result
846
+ assert ('\\ sphinxlineitem {\\ sphinxhref{http://sphinx-doc.org/}{Term in deflist} '
847
+ '(http://sphinx\\ sphinxhyphen{}doc.org/)}'
848
+ '\n \\ sphinxAtStartPar\n Description' ) in result
849
849
assert '\\ sphinxurl{https://github.com/sphinx-doc/sphinx}\n ' in result
850
850
assert ('\\ sphinxhref{mailto:sphinx-dev@googlegroups.com}'
851
851
'{sphinx\\ sphinxhyphen{}dev@googlegroups.com}' ) in result
@@ -893,22 +893,22 @@ def test_latex_show_urls_is_footnote(app, status, warning):
F438
893
893
assert ('\\ sphinxhref{http://sphinx-doc.org/~test/}{URL including tilde}'
894
894
'%\n \\ begin{footnote}[5]\\ sphinxAtStartFootnote\n '
895
895
'\\ sphinxnolinkurl{http://sphinx-doc.org/~test/}\n %\n \\ end{footnote}' ) in result
896
- assert ('\\ item[ {\\ sphinxhref{http://sphinx-doc.org/}'
897
- '{URL in term}\\ sphinxfootnotemark[9]}] '
898
- '\\ leavevmode %\n \\ begin{footnotetext}[9]'
896
+ assert ('\\ sphinxlineitem {\\ sphinxhref{http://sphinx-doc.org/}'
897
+ '{URL in term}\\ sphinxfootnotemark[9]}'
898
+ '%\n \\ begin{footnotetext}[9]'
899
899
'\\ phantomsection\\ label{\\ thesphinxscope.9}%\n '
900
900
'\\ sphinxAtStartFootnote\n '
901
901
'\\ sphinxnolinkurl{http://sphinx-doc.org/}\n %\n '
902
902
'\\ end{footnotetext}\\ ignorespaces \n \\ sphinxAtStartPar\n Description' ) in result
903
- assert ('\\ item[ {Footnote in term \\ sphinxfootnotemark[11]}] '
904
- '\\ leavevmode %\n \\ begin{footnotetext}[11]'
903
+ assert ('\\ sphinxlineitem {Footnote in term \\ sphinxfootnotemark[11]}'
904
+ '%\n \\ begin{footnotetext}[11]'
905
905
'\\ phantomsection\\ label{\\ thesphinxscope.11}%\n '
906
906
'\\ sphinxAtStartFootnote\n '
907
907
'Footnote in term\n %\n \\ end{footnotetext}\\ ignorespaces '
908
908
'\n \\ sphinxAtStartPar\n Description' ) in result
909
- assert ('\\ item[ {\\ sphinxhref{http://sphinx-doc.org/}{Term in deflist}'
910
- '\\ sphinxfootnotemark[10]}] '
911
- '\\ leavevmode %\n \\ begin{footnotetext}[10]'
909
+ assert ('\\ sphinxlineitem {\\ sphinxhref{http://sphinx-doc.org/}{Term in deflist}'
910
+ '\\ sphinxfootnotemark[10]}'
911
+ '%\n \\ begin{footnotetext}[10]'
912
912
'\\ phantomsection\\ label{\\ thesphinxscope.10}%\n '
913
913
'\\ sphinxAtStartFootnote\n '
914
914
'\\ sphinxnolinkurl{http://sphinx-doc.org/}\n %\n '
@@ -955,16 +955,16 @@ def test_latex_show_urls_is_no(app, status, warning):
955
955
'\\ sphinxAtStartFootnote\n '
956
956
'Footnote inside footnote\n %\n \\ end{footnotetext}\\ ignorespaces' ) in result
957
957
assert '\\ sphinxhref{http://sphinx-doc.org/~test/}{URL including tilde}' in result
958
- assert ('\\ item[ {\\ sphinxhref{http://sphinx-doc.org/}{URL in term}}] '
959
- '\\ leavevmode \ n\\ sphinxAtStartPar\n Description' ) in result
960
- assert ('\\ item[ {Footnote in term \\ sphinxfootnotemark[6]}] '
961
- '\\ leavevmode %\n \\ begin{footnotetext}[6]'
958
+ assert ('\\ sphinxlineitem {\\ sphinxhref{http://sphinx-doc.org/}{URL in term}}'
959
+ '\n \\ sphinxAtStartPar\n Description' ) in result
960
+ assert ('\\ sphinxlineitem {Footnote in term \\ sphinxfootnotemark[6]}'
961
+ '%\n \\ begin{footnotetext}[6]'
962
962
'\\ phantomsection\\ label{\\ thesphinxscope.6}%\n '
963
963
'\\ sphinxAtStartFootnote\n '
964
964
'Footnote in term\n %\n \\ end{footnotetext}\\ ignorespaces '
965
965
'\n \\ sphinxAtStartPar\n Description' ) in result
966
- assert ('\\ item[ {\\ sphinxhref{http://sphinx-doc.org/}{Term in deflist}}] '
967
- '\\ leavevmode \ n\\ sphinxAtStartPar\n Description' ) in result
966
+ assert ('\\ sphinxlineitem {\\ sphinxhref{http://sphinx-doc.org/}{Term in deflist}}'
967
+ '\n \\ sphinxAtStartPar\n Description' ) in result
968
968
assert ('\\ sphinxurl{https://github.com/sphinx-doc/sphinx}\n ' in result )
969
969
assert ('\\ sphinxhref{mailto:sphinx-dev@googlegroups.com}'
970
970
'{sphinx\\ sphinxhyphen{}dev@googlegroups.com}\n ' ) in result
@@ -1454,23 +1454,23 @@ def test_latex_glossary(app, status, warning):
1454
1454
app .builder .build_all ()
1455
1455
1456
1456
result = (app .outdir / 'python.tex' ).read_text ()
1457
- assert (' \\ item[ {ähnlich\\ index{ähnlich@\ \ spxentry{ähnlich}|spxpagem}'
1457
+ assert (r'\sphinxlineitem {ähnlich\index{ähnlich@\spxentry{ähnlich}|spxpagem}'
1458
1458
r'\phantomsection'
1459
- r'\label{\detokenize{index:term-ahnlich}}}] \leavevmode ' in result )
1460
- assert (r'\item[ {boson\index{boson@\spxentry{boson}|spxpagem}\phantomsection'
1461
- r'\label{\detokenize{index:term-boson}}}] \leavevmode ' in result )
1462
- assert (r'\item[ {\sphinxstyleemphasis{fermion}'
1459
+ r'\label{\detokenize{index:term-ahnlich}}}' in result )
1460
+ assert (r'\sphinxlineitem {boson\index{boson@\spxentry{boson}|spxpagem}\phantomsection'
1461
+ r'\label{\detokenize{index:term-boson}}}' in result )
1462
+ assert (r'\sphinxlineitem {\sphinxstyleemphasis{fermion}'
1463
1463
r'\index{fermion@\spxentry{fermion}|spxpagem}'
1464
1464
r'\phantomsection'
1465
- r'\label{\detokenize{index:term-fermion}}}] \leavevmode ' in result )
1466
- assert (r'\item[ {tauon\index{tauon@\spxentry{tauon}|spxpagem}\phantomsection'
1467
- r'\label{\detokenize{index:term-tauon}}}] \leavevmode '
1468
- r'\item[ {myon\index{myon@\spxentry{myon}|spxpagem}\phantomsection'
1469
- r'\label{\detokenize{index:term-myon}}}] \leavevmode '
1470
- r'\item[ {electron\index{electron@\spxentry{electron}|spxpagem}\phantomsection'
1471
- r'\label{\detokenize{index:term-electron}}}] \leavevmode ' in result )
1472
- assert (' \\ item[ {über\\ index{über@\\ spxentry{über}|spxpagem}\ \ phantomsection'
1473
- r'\label{\detokenize{index:term-uber}}}] \leavevmode ' in result )
1465
+ r'\label{\detokenize{index:term-fermion}}}' in result )
1466
+ assert (r'\sphinxlineitem {tauon\index{tauon@\spxentry{tauon}|spxpagem}\phantomsection'
1467
+ r'\label{\detokenize{index:term-tauon}}}'
1468
+ r'\sphinxlineitem {myon\index{myon@\spxentry{myon}|spxpagem}\phantomsection'
1469
+ r'\label{\detokenize{index:term-myon}}}'
1470
+ r'\sphinxlineitem {electron\index{electron@\spxentry{electron}|spxpagem}\phantomsection'
1471
+ r'\label{\detokenize{index:term-electron}}}' in result )
1472
+ assert (r'\sphinxlineitem {über\index{über@\spxentry{über}|spxpagem}\phantomsection'
1473
+ r'\label{\detokenize{index:term-uber}}}' in result )
1474
1474
1475
1475
1476
1476
@pytest .mark .sphinx ('latex' , testroot = 'latex-labels' )
0 commit comments