[tex4ht] [bug #619] Invalid html generated for enumitem enumerations.

Rishi Ramraj puszcza-hackers at gnu.org.ua
Fri Jan 12 04:28:09 CET 2024


URL:
  <http://puszcza.gnu.org.ua/bugs/?619>

                 Summary: Invalid html generated for enumitem enumerations.
                 Project: tex4ht
            Submitted by: rishi
            Submitted on: Fri Jan 12 03:28:08 2024
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I created an example using docker-compose (attached) to demonstrate the issue.
The following latex:

\documentclass[letterpaper]{article}
\usepackage{enumitem}
\begin{document}
Before the list.
\begin{enumerate}[label=(\arabic*)]
  \begin{item}
    An item.
  \end{item}
  \begin{item}
    A second item.
  \end{item}
  \begin{item}
    A third item.
  \end{item}
\end{enumerate}
After the list.
\end{document}

Produces the following html:

<body>
  <p class="noindent" >Before the list. </p>
  <dl class="enumerate-enumitem">
  <dt class="enumerate-enumitem"> (1) </dt>
  <dd class="enumerate-enumitem">An item. (2) A second item. (3) A third
item.
  <p class="indent" >After the list. </p>
</body>

However, it should produce:

<body>
  <p class="noindent" >Before the list.</p>
  <dl class="enumerate-enumitem">
    <dt class="enumerate-enumitem"> (1) </dt> <dd
class="enumerate-enumitem">An item.</dd>
    <dt class="enumerate-enumitem"> (2) </dt> <dd class="enumerate-enumitem">A
second item.</dd>
    <dt class="enumerate-enumitem"> (3) </dt> <dd class="enumerate-enumitem">A
third item.</dd>
  </dl>
  <p class="indent" >After the list.</p>
</body>




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri Jan 12 03:28:09 2024  Name: main.css  Size: 7kB   By: rishi

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=535>
-------------------------------------------------------
Date: Fri Jan 12 03:28:09 2024  Name: main.pdf  Size: 15kB   By: rishi

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=536>
-------------------------------------------------------
Date: Fri Jan 12 03:28:08 2024  Name: example.zip  Size: 2kB   By: rishi

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=533>
-------------------------------------------------------
Date: Fri Jan 12 03:28:08 2024  Name: main.html  Size: 652B   By: rishi

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=534>

    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?619>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list.