From 77dc9953ed21615c811db9885a44b9c357461fe3 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 26 Sep 2020 21:49:45 +0000
Subject: tcolorbox (26sep20)

git-svn-id: svn://tug.org/texlive/trunk@56446 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex')

diff --git a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
index 30a01ea7add..5d8558f8255 100644
--- a/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
+++ b/Master/texmf-dist/tex/latex/tcolorbox/tcbminted.code.tex
@@ -1,4 +1,4 @@
-%% The LaTeX package tcolorbox - version 4.32 (2020/09/17)
+%% The LaTeX package tcolorbox - version 4.40 (2020/09/25)
 %% tcbminted.code.tex: Code for colorboxes with listings
 %%
 %% -------------------------------------------------------------------------------------------
@@ -18,10 +18,13 @@
 %% This work consists of all files listed in README
 %%
 %\makeatletter
-\tcb@set@library@version{4.32}
+\tcb@set@library@version{4.40}
 
 \RequirePackage{minted}[2011/09/17]
 
+% to be removed, if integrated into the minted package (#281)
+\minted@def@optcl{envname}{-P envname}{#1}
+
 \tcbuselibrary{listings@core}
 
 \def\tcb@minted@input@listing#1#2#3#4{%
@@ -32,7 +35,11 @@
     \edef\tcb@temp{\noexpand\usemintedstyle{\the\toks@}}%
     \tcb@temp%
   \fi%
-  \toks@=\expandafter{#1}%
+  \ifdefstring{\tcb@listing@capture}{hbox}{%
+    \toks@=\expandafter{#1,envname=BVerbatim}%
+  }{%
+    \toks@=\expandafter{#1}%
+  }%
   \edef\tcb@temp{\noexpand\inputminted[\the\toks@]}%
   \IfFileExists{\minted@outputdir#3}%
     {\tcb@temp{#2}{\minted@outputdir#3}}%
-- 
cgit v1.2.3

