Skip to content

Blank lines are not preserved in {alltt} environment #1017

@siegfriedzoetzsche

Description

@siegfriedzoetzsche

The {alltt} environment should preserve blank lines but alltt.tex:

    \documentclass{article}
    \usepackage{alltt}
    \begin{document}
    \begin{alltt}
    #!/usr/bin/env bash
    
    echo 'Hello'
    \end{alltt}
    \end{document}

converted with

    latexml --strict --destination alltt.xml alltt.tex

results in

    [...]
        <verbatim font="typewriter">
    #!/usr/bin/env bash
    echo ’Hello’
    </verbatim>
    [...]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions