Skip to content

Verbatim text renders centered inside centered verbatim in html output #35

Open
@ghamerly

Description

@ghamerly

See https://open.kattis.com/problems/printingcosts

The source LaTeX says:

\begin{center}
\begin{minipage}{5.1in}
\begin{verbatim}
    0        !   9        "   6        #  24        $  29        %  22
&  24        '   3        (  12        )  12        *  17        +  13
[snip]
t  17        u  17        v  13        w  19        x  13        y  24
z  19        {  18        |  12        }  18        ~   9        
\end{verbatim}
\end{minipage}
\end{center}

In HTML, look at last line to see the issue (the verbatim line starting with z). It is not left-aligned with the text above in the HTML formatted version.

In the PDF, the text inside \verbatim is rendered left-aligned, as expected. In HTML, the same text is center-justified, which is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions