-
Notifications
You must be signed in to change notification settings - Fork 84
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
modifyLineBreaks
with when: after
has problems in the presence of comments and \item
#450
Comments
Thanks for this, I hope to get to this soon. |
Apologies for the delay, I'm working on this. I've so far resolved parts of the problem, but not all. Thanks again for reporting this, and for providing such a helpful example! I'll report back once I've got it fixed... |
As of fdc2ea0 this is resolved. original\documentclass{article}
\usepackage{minted}
\begin{document}
the main idea behind trig integrals: pythagorean theorem identities. what is a triangle anyway?
the main idea behind trig integrals:
%
pythagorean theorem identities.
what is a triangle anyway?
the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities.
what is a triangle anyway?
the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
%
pythagorean theorem identities.
what is a triangle anyway?
\begin{itemize}
\item the main idea behind trig integrals: pythagorean theorem identities. what is a triangle anyway?
\item the main idea behind trig integrals:
%
pythagorean theorem identities.
what is a triangle anyway?
\item the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities.
what is a triangle anyway?
\item the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
%
pythagorean theorem identities.
what is a triangle anyway?
\end{itemize}
\end{document} settingsnoIndentBlock:
mintinline:
begin: (?<!\\)\\mintinline\{
body: [^}]*?\}\{[^}]*?
end: \}
modifyLineBreaks:
textWrapOptions:
columns: 70
when: "after" output\documentclass{article}
\usepackage{minted}
\begin{document}
the main idea behind trig integrals: pythagorean theorem identities.
what is a triangle anyway?
the main idea behind trig integrals:
%
pythagorean theorem identities. what is a triangle anyway?
the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities. what is a triangle anyway?
the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
%
pythagorean theorem identities. what is a triangle anyway?
\begin{itemize}
\item the main idea behind trig integrals: pythagorean theorem
identities. what is a triangle anyway?
\item the main idea behind trig integrals:
%
pythagorean theorem identities. what is a triangle anyway?
\item the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities. what is a triangle anyway?
\item the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
%
pythagorean theorem identities. what is a triangle anyway?
\end{itemize}
\end{document} Thanks again, I'll get this released imminently :) |
Thank you so much for the effort to fix this! Have a great day :D |
I have just discovered another minor issue/bug that also goes away when I remove the Original\documentclass{article}
\usepackage{minted}
\begin{document}
the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities.
what is a triangle anyway?
It has three sides!
\begin{itemize}
\item the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities.
what is a triangle anyway?
It has three sides!
\end{itemize}
\end{document} Actual OutputYou can see that the has three sides! outside the itemize is indented. \documentclass{article}
\usepackage{minted}
\begin{document}
the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities. what is a triangle anyway? It
has three sides!
\begin{itemize}
\item the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities. what is a triangle anyway?
It has three sides!
\end{itemize}
\end{document} Expected output(only relevant exert) When removing the the main idea behind trig integrals:
%
\mintinline{bash}{echo "hello"}
pythagorean theorem identities. what is a triangle anyway? It has
three sides! SettingsNote: I quote the noIndentBlock:
mintinline:
begin: (?<!\\)\\mintinline\{
body: '[^}]*?\}\{[^}]*?'
end: \}
modifyLineBreaks:
textWrapOptions:
columns: 70
when: "after" |
My apologies, I should have caught this previously. As of 4b3458c you get your desired output. I'll do some more testing, and get another release out soon. Thanks, and apologies again. |
original .tex code
yaml settings
actual/given output
desired or expected output
anything else
This issue seems related to #412, as it shows many of the same symptoms. Everything works perfectly fine once I remove the
when: after
setting!A few notes on my example:
6.1.6 Text wrap: trailing comments and spaces
of the user manual, which is not the expected behavior here given that the comments are on their own lines. (great job on the manual btw!!)\mintinline
).minted
(NB: line break in the tex file, not the output PDF). See the last two\item
from the actual/given outputverbatimCommands
option). It avoids the formatter to accidentally insert a line break and cause a compile error or other artifacts.\mintinline
macro. Is this the expected behavior? I'm not sure if I would have expected the text to be wrapped such that it continues after the\mintinline
here; but this is fine as well. I just wanted a small clarification!The text was updated successfully, but these errors were encountered: