[tex4ht-commits] [SCM] tex4ht updated: r581 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Mon Jun 24 22:42:06 CEST 2019


Author: michal_h21
Date: 2019-06-24 23:42:06 +0300 (Mon, 24 Jun 2019)
New Revision: 581

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed the breaklines option in the Minted package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-06-19 14:35:32 UTC (rev 580)
+++ trunk/lit/ChangeLog	2019-06-24 20:42:06 UTC (rev 581)
@@ -1,3 +1,8 @@
+2019-06-24  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (usepackage.4ht): fixed the breaklines option for Minted
+	package.
+
 2019-06-19  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (usepackage.4ht, polyglossia.4ht),

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-06-19 14:35:32 UTC (rev 580)
+++ trunk/lit/tex4ht-4ht.tex	2019-06-24 20:42:06 UTC (rev 581)
@@ -29442,6 +29442,28 @@
 \EndList
 
 %%%%%%%%%%%%%%%%%%%
+\Section{minted}
+%%%%%%%%%%%%%%%%%%%
+
+The breaklines option for Minted environments and commands causes source code
+lines to collapse into one line. We try to prevent that by basically disabling
+this option.
+
+As it can be declared in the preamble, we must patch the usepackage code.
+
+\<use package\><<<
+minted,>>>
+
+
+\<add to usepackage\><<<
+\def\:temp{minted}\ifx\@currname\:temp
+  \AtEndOfPackage{%
+    \define at booleankey{minted at opt@g}{breaklines}{}{}{}%
+  }
+\fi
+>>>
+
+%%%%%%%%%%%%%%%%%%%
 \Section{alphanum}
 %%%%%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list