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
Closed

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

siegfriedzoetzsche opened this issue Jul 16, 2018 · 2 comments

Comments

@siegfriedzoetzsche
Copy link

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
Copy link
Collaborator

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants