[tex4ht-commits] [SCM] tex4ht updated: r831 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sun Oct 18 22:44:23 CEST 2020
Author: michal_h21
Date: 2020-10-18 23:44:22 +0300 (Sun, 18 Oct 2020)
New Revision: 831
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
fixed the minted breaklines option handling
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-10-17 11:01:58 UTC (rev 830)
+++ trunk/lit/ChangeLog 2020-10-18 20:44:22 UTC (rev 831)
@@ -1,3 +1,8 @@
+2020-10-18 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (minted-sty-hooks.4ht): fixed the breaklines option
+ handling.
+
2020-10-17 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (usepackage.4ht, graphics-hooks.4ht): adapted Graphics for
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2020-10-17 11:01:58 UTC (rev 830)
+++ trunk/lit/tex4ht-4ht.tex 2020-10-18 20:44:22 UTC (rev 831)
@@ -24071,12 +24071,38 @@
|<TeX4ht license text|>
\AddToHook{package/after/minted}{%
\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}
-\define at booleankey{minted at opt@g}{breaklines}{}{}{}%
+|<minted breaklines|>
}
>>>
\AddFile{9}{minted-sty-hooks}
+We use modified version of the keyval option declaration command used by
+Minted, it turns the breaklines option to false when it is used.
+
+\<minted breaklines\><<<
+\newcommand{\:minted at def@opt at switch}[2][false]{%
+ \define at booleankey{minted at opt@g}{#2}%
+ {\@namedef{minted at opt@g:#2}{false}}%
+ {\@namedef{minted at opt@g:#2}{false}}
+ \define at booleankey{minted at opt@g at i}{#2}%
+ {\@namedef{minted at opt@g at i:#2}{false}}%
+ {\@namedef{minted at opt@g at i:#2}{false}}
+ \define at booleankey{minted at opt@lang}{#2}%
+ {\@namedef{minted at opt@lang\minted at lang :#2}{false}}%
+ {\@namedef{minted at opt@lang\minted at lang :#2}{false}}
+ \define at booleankey{minted at opt@lang at i}{#2}%
+ {\@namedef{minted at opt@lang\minted at lang @i:#2}{false}}%
+ {\@namedef{minted at opt@lang\minted at lang @i:#2}{false}}
+ \define at booleankey{minted at opt@cmd}{#2}%
+ {\@namedef{minted at opt@cmd:#2}{false}}%
+ {\@namedef{minted at opt@cmd:#2}{false}}%
+ \@namedef{minted at opt@g:#2}{#1}%
+}
+\:minted at def@opt at switch{breaklines}
+>>>
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{pythontex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.