From 3b24b0599bb35e1a3338fa33bfb24044a6125ba4 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Thu, 19 Dec 2019 03:01:35 +0000
Subject: CTAN sync 201912190301

---
 macros/latex/contrib/pdfpages/pdfpages.dtx | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

(limited to 'macros/latex/contrib/pdfpages/pdfpages.dtx')

diff --git a/macros/latex/contrib/pdfpages/pdfpages.dtx b/macros/latex/contrib/pdfpages/pdfpages.dtx
index d1b10ffe56..d9d974377b 100644
--- a/macros/latex/contrib/pdfpages/pdfpages.dtx
+++ b/macros/latex/contrib/pdfpages/pdfpages.dtx
@@ -27,12 +27,12 @@
 %<*dtx>
 \makeatletter
 %</dtx>
-\def\AM@fileversion{v0.5o}
+\def\AM@fileversion{v0.5p}
 \def\AM@Git@Date@process$#1: #2 #3${\AM@Git@Date@process@i#2\END}
 \def\AM@Git@Date@process@i#1-#2-#3\END{\def\AM@Git@Date{#1/#2/#3}}
 \def\AM@Git@SHA@process$#1: #2${\def\AM@Git@SHA{#2}}
-\AM@Git@Date@process$Date: 2019-11-21 22:42:07 +0100 $
-\AM@Git@SHA@process$SHA-1: 93ad0990b7b033614833d48104c875c739c217aa $
+\AM@Git@Date@process$Date: 2019-12-17 19:25:27 +0100 $
+\AM@Git@SHA@process$SHA-1: a9f02534fb2a372bd05e8b882e851706165e532b $
 %</!(example1,example2,example3,installer)>
 %
 %
@@ -2097,15 +2097,19 @@
 %    \begin{macrocode}
 \def\AM@range@or@docname#1{%
   \edef\AM@arg{\AM@trim@space{#1}}%
-  \expandafter\AM@checkrange\AM@arg-\END
-  \ifAM@isrange
-    \ifx\AM@currentdocname\relax
-      \AM@setnewdocname{\AM@arg}%
+  \ifx\AM@arg\@empty
+    \AM@append{}
+  \else
+    \expandafter\AM@checkrange\AM@arg-\END
+    \ifAM@isrange
+      \ifx\AM@currentdocname\relax
+        \AM@setnewdocname{\AM@arg}%
+      \else
+        \AM@expand@range\AM@i\AM@ii
+      \fi
     \else
-      \AM@expand@range\AM@i\AM@ii
+      \AM@setnewdocname{\AM@arg}%
     \fi
-  \else
-    \AM@setnewdocname{\AM@arg}%
   \fi
 }
 %    \end{macrocode}
-- 
cgit v1.2.3

