Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
siegfriedzoetzsche opened this issue Jul 16, 2018 · 2 comments
Labels
Milestone

Comments

@siegfriedzoetzsche
Copy link

@siegfriedzoetzsche siegfriedzoetzsche commented Jul 16, 2018

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>
    [...]
@dginev dginev added this to the LaTeXML-0.8.4 milestone Jul 16, 2018
@dginev

This comment has been minimized.

Copy link
Collaborator

@dginev dginev commented Jul 16, 2018

Thank you for the report! There is already a test file for alltt that we should add this test into to ensure parity.

@brucemiller

This comment has been minimized.

Copy link
Owner

@brucemiller brucemiller commented Jul 17, 2018

Hmm, thought that was handed, but needs to be a bit more clever. Should work now. Thanks for the report!

@dginev dginev modified the milestones: LaTeXML-0.8.4, LaTeXML-0.8.3 Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.