[latex3-commits] [git/LaTeX3-latex3-latex2e] master: zapping all spaces in \bibligraphy argument (github #88) (454ecad)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Nov 9 17:30:30 CET 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/454ecad191e2329dc46e268ae97cb2e3c30c44b3

>---------------------------------------------------------------

commit 454ecad191e2329dc46e268ae97cb2e3c30c44b3
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Nov 9 17:30:30 2018 +0100

    zapping all spaces in \bibligraphy argument  (github #88)


>---------------------------------------------------------------

454ecad191e2329dc46e268ae97cb2e3c30c44b3
 base/changes.txt               |    7 +++++++
 base/ltbibl.dtx                |    8 +++++---
 base/testfiles/github-0088.lvt |   21 +++++++++++++++++++++
 base/testfiles/github-0088.tlg |    6 ++++++
 4 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index d23f453..14a7c8e 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -1,9 +1,16 @@
+
 This file lists changes to the LaTeX2e files in reverse chronological order.
 It is provided for convenience only.  It therefore makes no claims to
 completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 =======================================================================
 
+2018-11-09  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltbibl.dtx (section{Bibliography Generation}):
+	Zap spaces in the argument of \bibliography
+	as BibTeX doesn't support them (github/88)
+
 2018-10-11  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltmiscen.dtx (subsection{Verbatim}):
diff --git a/base/ltbibl.dtx b/base/ltbibl.dtx
index 198897d..7950568 100644
--- a/base/ltbibl.dtx
+++ b/base/ltbibl.dtx
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright 1993-2016
+% Copyright 1993-2018
 % The LaTeX3 Project and any individual authors listed elsewhere
 % in this file.
 %
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltbibl.dtx}
-             [2004/02/15 v1.1q LaTeX Kernel (Bibliography)]
+             [2018/11/09 v1.1r LaTeX Kernel (Bibliography)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltbibl.dtx}
@@ -284,10 +284,12 @@
 % \begin{macro}{\bibliography}
 % \changes{LaTeX2e}{1994/01/18}
 %         {Use \cs{@input@} so include files are listed.}
+% \changes{LaTeX2e}{2018/11/09}
+%         {Zap spaces in the argument as BibTeX doesn't support them (github/88)}
 %    \begin{macrocode}
 \def\bibliography#1{%
   \if at filesw
-    \immediate\write\@auxout{\string\bibdata{#1}}%
+    \immediate\write\@auxout{\string\bibdata{\zap at space#1 \@empty}}%
   \fi
   \@input@{\jobname.bbl}}
 %    \end{macrocode}
diff --git a/base/testfiles/github-0088.lvt b/base/testfiles/github-0088.lvt
new file mode 100644
index 0000000..8d65fa8
--- /dev/null
+++ b/base/testfiles/github-0088.lvt
@@ -0,0 +1,21 @@
+% space in \bibliography are now zapped
+
+\documentclass{article}
+
+\input{test2e}
+
+\begin{document}
+
+\bibliography{test1, test2 , test test3 }
+
+Test
+\newpage
+
+
+\immediate\closeout \csname @mainaux\endcsname % to see aux data
+
+\START
+
+\SHOWFILE{\jobname.aux}
+ 
+\END
diff --git a/base/testfiles/github-0088.tlg b/base/testfiles/github-0088.tlg
new file mode 100644
index 0000000..34b78ac
--- /dev/null
+++ b/base/testfiles/github-0088.tlg
@@ -0,0 +1,6 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+-------- github-0088.aux (start) ---------
+(github-0088.aux) \relax^^M
+\bibdata{test1,test2,testtest3}^^M
+-------- github-0088.aux (end) -----------





More information about the latex3-commits mailing list