From d63330f036285d6cb4a0ac403eb640c27dc2e0f9 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 21 Nov 2022 20:51:47 +0000
Subject: docshots (20nov22)

git-svn-id: svn://tug.org/texlive/trunk@65072 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/latex/docshots/docshots.dtx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'Master/texmf-dist/source/latex/docshots/docshots.dtx')

diff --git a/Master/texmf-dist/source/latex/docshots/docshots.dtx b/Master/texmf-dist/source/latex/docshots/docshots.dtx
index 0ba48b98de9..9163bc10a1f 100644
--- a/Master/texmf-dist/source/latex/docshots/docshots.dtx
+++ b/Master/texmf-dist/source/latex/docshots/docshots.dtx
@@ -50,7 +50,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{docshots}
 %<*package>
-[2022-11-10 0.3.0 TeX Samples Next to Their PDF Snapshots in DTX]
+[2022-11-20 0.3.1 TeX Samples Next to Their PDF Snapshots in DTX]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -366,7 +366,7 @@ Hello, world!
 %</verb>
 %\fi
 
-% \section{Fine-uning Options}
+% \section{Fine-tuning Options}
 
 % \DescribeMacro{\docshotOptions}
 % By default, we render the verbatim text using |\VerbatimInput| command with
@@ -556,9 +556,10 @@ Hello, world!
 {\end{VerbatimOut}%
 %    \end{macrocode}
 % If we are in |dtx| mode, leading percent characters must be removed:
+% \changes{0.3.1}{2022/11/20}{A bug fixed, now handling of leading percentage symbols is done right.}
 %    \begin{macrocode}
   \ifdefined\docshots@dtx%
-    \iexec[null]{perl -i -0777pe "s/(\\n|^)\\x{25} /\\1/g"
+    \iexec[null]{perl -i -0777pe "s/(\\n|^)\\x{25}\\s?/\\1/g"
       \docshots@tmpdir/\jobname/verbatim.tex}%
   \fi%
 %    \end{macrocode}
@@ -675,7 +676,7 @@ Hello, world!
 % \end{macro}
 
 % \begin{macro}{\docshotAfter}
-% Finally, we define |\docshotAfter| command:
+% Then, we define |\docshotAfter| command:
 %    \begin{macrocode}
 \makeatletter\newcommand\docshotAfter[1]{
   \iexec[\docshots@log,quiet]{/bin/echo -n '\detokenize{#1}'
-- 
cgit v1.2.3

