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

autogobble broken with fancyvrb 4.1 #315

Closed
T-F-S opened this issue Dec 1, 2021 · 3 comments
Closed

autogobble broken with fancyvrb 4.1 #315

T-F-S opened this issue Dec 1, 2021 · 3 comments

Comments

@T-F-S
Copy link

T-F-S commented Dec 1, 2021

With fancyvrb 4.1, the autogobble option is broken (worked for fancyvrb 3.9).

Consider the following MWE:

\documentclass{report}

\usepackage{minted}

\begin{document}

\begin{minted}[autogobble]{c}
   int main() {
     printf("hello, world");
   }
\end{minted}

\end{document}

The compilation with pdflatex delivers following output (and no gobbling of white spaces):

grafik

The situation is worse for \inputminted:

If we take

   int main() {
     printf("hello, world");
   }

as file example.c and use

\documentclass{report}

\usepackage{minted}

\begin{document}

\inputminted[autogobble]{c}{example.c}

\end{document}

we get

grafik

So, in case of the minted environment, autogobble does not work anymore, but compilation finishes. In case of \inputminted, compilation is also broken.

@muzimuzhi
Copy link

oops, I didn't see this one and just opened a duplicate (#316).

gpoore added a commit that referenced this issue Dec 2, 2021
@gpoore
Copy link
Owner

gpoore commented Dec 2, 2021

@T-F-S Thanks for reporting this. @muzimuzhi Thanks for the suggestions in #316.

This should be fixed with the last commit. I need to do a little more testing and see if I can quickly fix any other issues, and then I'll release a new version and upload to CTAN.

@T-F-S
Copy link
Author

T-F-S commented Dec 2, 2021

@gpoore Thank you :-)

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