texlive[41984] Master/texmf-dist: fvextra (3sep16)

commits+karl at tug.org commits+karl at tug.org
Sat Sep 3 23:35:58 CEST 2016


Revision: 41984
          http://tug.org/svn/texlive?view=revision&revision=41984
Author:   karl
Date:     2016-09-03 23:35:58 +0200 (Sat, 03 Sep 2016)
Log Message:
-----------
fvextra (3sep16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fvextra/fvextra.pdf
    trunk/Master/texmf-dist/source/latex/fvextra/fvextra.dtx
    trunk/Master/texmf-dist/tex/latex/fvextra/fvextra.sty

Modified: trunk/Master/texmf-dist/doc/latex/fvextra/fvextra.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/fvextra/fvextra.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fvextra/fvextra.dtx	2016-09-03 21:35:45 UTC (rev 41983)
+++ trunk/Master/texmf-dist/source/latex/fvextra/fvextra.dtx	2016-09-03 21:35:58 UTC (rev 41984)
@@ -26,7 +26,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{fvextra}
 %<*package>
-    [2016/07/20 v1.2 fvextra - extensions and patches for fancyvrb]
+    [2016/09/02 v1.2.1 fvextra - extensions and patches for fancyvrb]
 %</package>
 %
 %<*driver>
@@ -213,7 +213,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{2843}
+% \CheckSum{2857}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -232,6 +232,12 @@
 %   Right brace   \}     Tilde         \~}
 %
 %
+% \begin{changelog}{v1.2.1}{2016/09/02}
+% \item The package is now compatible with classes and packages that redefine \texttt{\string\raggedright}.
+% \item Fixed a bug that introduced extra space in inline contexts such as \texttt{\string\mintinline} when \texttt{breaklines=true} (\#3).
+% \end{changelog}
+%
+%
 % \begin{changelog}{v1.2}{2016/07/20}
 % \item Added support for line breaking when working with Pygments for syntax highlighting.
 % \item The default \texttt{highlightcolor} is now defined with \texttt{rgb} for compatibility with the \texttt{color} package.  Fixed a bug in the conditional color definition when \texttt{color} and \texttt{xcolor} are not loaded before \texttt{fvextra}.
@@ -3082,6 +3088,17 @@
 %    \end{macrocode}
 % \end{macro}
 %
+%
+% \begin{macro}{\FV at RaggedRight}
+% We need a copy of the default |\raggedright| to ensure that everything works with classes or packages that use a special definition.
+%    \begin{macrocode}
+\def\FV at RaggedRight{%
+  \let\\\@centercr
+  \@rightskip\@flushglue\rightskip\@rightskip\leftskip\z at skip\parindent\z@}
+%    \end{macrocode}
+% \end{macro}
+%
+%
 % \begin{macro}{\FV at SaveLineBox}
 % This is the macro that does most of the work.  It was inspired by Marco Daniel's code at \url{http://tex.stackexchange.com/a/112573/10742}.
 %
@@ -3105,7 +3122,7 @@
     \ifdefempty{\FancyVerbBreakSymbolRight}{}%
      {\advance\linewidth by -\FV at BreakSymbolIndentRight}%
     \parbox[t]{\linewidth}{%
-      \raggedright
+      \FV at RaggedRight
       \leftlinenumbers*
       \begin{internallinenumbers*}%
       \let\makeLineNumber\FV at makeLineNumber
@@ -3376,13 +3393,13 @@
 \def\FV at VerbatimPygments#1#2{%
   \edef\FV at PYG@Literal{\expandafter\FV at DetokMacro@StripSpace\detokenize{#1}}%
   \def\FV at BreakBeforePrep@PygmentsHook{%
-    \expandafter\FV at BreakBeforePrep@Pygments\expandafter{\FV at PYG@Literal}}
+    \expandafter\FV at BreakBeforePrep@Pygments\expandafter{\FV at PYG@Literal}}%
   \def\FV at BreakAfterPrep@PygmentsHook{%
-    \expandafter\FV at BreakAfterPrep@Pygments\expandafter{\FV at PYG@Literal}}
+    \expandafter\FV at BreakAfterPrep@Pygments\expandafter{\FV at PYG@Literal}}%
   \ifx#2\relax
-    \let\FV at PYG#1
+    \let\FV at PYG#1%
   \else
-    \let\FV at PYG#2
+    \let\FV at PYG#2%
   \fi
   \ifbool{FV at breakbytoken}%
    {\ifbool{FV at breakbytokenanywhere}%

Modified: trunk/Master/texmf-dist/tex/latex/fvextra/fvextra.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fvextra/fvextra.sty	2016-09-03 21:35:45 UTC (rev 41983)
+++ trunk/Master/texmf-dist/tex/latex/fvextra/fvextra.sty	2016-09-03 21:35:58 UTC (rev 41984)
@@ -20,7 +20,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{fvextra}
-    [2016/07/20 v1.2 fvextra - extensions and patches for fancyvrb]
+    [2016/09/02 v1.2.1 fvextra - extensions and patches for fancyvrb]
 \RequirePackage{ifthen}
 \RequirePackage{etoolbox}
 \RequirePackage{fancyvrb}
@@ -1152,6 +1152,9 @@
     \FV at SetLineBreakLast
   }%
 }
+\def\FV at RaggedRight{%
+  \let\\\@centercr
+  \@rightskip\@flushglue\rightskip\@rightskip\leftskip\z at skip\parindent\z@}
 \def\FV at SaveLineBox#1{%
   \savebox{\FV at LineBox}{%
     \advance\linewidth by -\FV at BreakIndent
@@ -1170,7 +1173,7 @@
     \ifdefempty{\FancyVerbBreakSymbolRight}{}%
      {\advance\linewidth by -\FV at BreakSymbolIndentRight}%
     \parbox[t]{\linewidth}{%
-      \raggedright
+      \FV at RaggedRight
       \leftlinenumbers*
       \begin{internallinenumbers*}%
       \let\makeLineNumber\FV at makeLineNumber
@@ -1370,13 +1373,13 @@
 \def\FV at VerbatimPygments#1#2{%
   \edef\FV at PYG@Literal{\expandafter\FV at DetokMacro@StripSpace\detokenize{#1}}%
   \def\FV at BreakBeforePrep@PygmentsHook{%
-    \expandafter\FV at BreakBeforePrep@Pygments\expandafter{\FV at PYG@Literal}}
+    \expandafter\FV at BreakBeforePrep@Pygments\expandafter{\FV at PYG@Literal}}%
   \def\FV at BreakAfterPrep@PygmentsHook{%
-    \expandafter\FV at BreakAfterPrep@Pygments\expandafter{\FV at PYG@Literal}}
+    \expandafter\FV at BreakAfterPrep@Pygments\expandafter{\FV at PYG@Literal}}%
   \ifx#2\relax
-    \let\FV at PYG#1
+    \let\FV at PYG#1%
   \else
-    \let\FV at PYG#2
+    \let\FV at PYG#2%
   \fi
   \ifbool{FV at breakbytoken}%
    {\ifbool{FV at breakbytokenanywhere}%



More information about the tex-live-commits mailing list