[latex3-commits] [l3svn] 02/03: Terminate lines with % in bootstrap part

noreply at latex-project.org noreply at latex-project.org
Fri Nov 6 23:18:12 CET 2015


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit ddc2c183b42607d535a896be703c3edefb326bee
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Nov 6 21:26:00 2015 +0000

    Terminate lines with % in bootstrap part
    
    This is 'paranoia': expl3 can be loaded with formats other than
    LaTeX, and at least in theory TeX could therefore be in hmode.
---
 l3kernel/expl3.dtx       |   52 +++++++++++++++++++++++-----------------------
 l3kernel/l3bootstrap.dtx |   42 ++++++++++++++++++-------------------
 2 files changed, 47 insertions(+), 47 deletions(-)

diff --git a/l3kernel/expl3.dtx b/l3kernel/expl3.dtx
index dc8c1a1..f5fa96c 100644
--- a/l3kernel/expl3.dtx
+++ b/l3kernel/expl3.dtx
@@ -34,10 +34,10 @@
 %% -----------------------------------------------------------------------
 %
 %<*driver|generic|package>
-\def\ExplFileName{expl3}
-\def\ExplFileDescription{L3 programming layer}
-\def\ExplFileDate{2015/11/04}
-\def\ExplFileVersion{6224}
+\def\ExplFileName{expl3}%
+\def\ExplFileDescription{L3 programming layer}%
+\def\ExplFileDate{2015/11/04}%
+\def\ExplFileVersion{6224}%
 %</driver|generic|package>
 %<*driver>
 \documentclass[full]{l3doc}
@@ -1101,16 +1101,16 @@
 %    \begin{macrocode}
 %<*!loader>
 \begingroup
-  \def\next{\endgroup}
+  \def\next{\endgroup}%
   \expandafter\ifx\csname PackageError\endcsname\relax
     \begingroup
-      \def\next{\endgroup\endgroup}
+      \def\next{\endgroup\endgroup}%
       \def\PackageError#1#2#3%
         {%
           \endgroup
           \errhelp{#3}%
-          \errmessage{#1 Error: #2!}
-        }
+          \errmessage{#1 Error: #2!}%
+        }%
   \fi
   \expandafter\ifx\csname ExplLoaderFileVersion\endcsname\relax
     \def\next
@@ -1119,7 +1119,7 @@
           {%
             You have attempted to use the expl3 code directly rather than using
             the correct loader. Loading of expl3 will abort.
-          }
+          }%
         \endgroup
         \endinput
       }
@@ -1136,7 +1136,7 @@
             }%
           \endgroup
           \endinput
-        }
+        }%
     \fi
 \fi
 \next
@@ -1152,7 +1152,7 @@
     {%
       \ExplFileDate\space v\ExplFileVersion\space
       \ExplFileDescription\space
-    }
+    }%
 \else
   \expandafter\endinput
 \fi
@@ -1170,8 +1170,8 @@
     Package:
       \ExplFileName\space
       \ExplFileDate\space v\ExplFileVersion\space \ExplFileDescription\space
-      (code)
-  }
+      (code)%
+  }%
 %</!loader>
 %    \end{macrocode}
 %
@@ -1187,7 +1187,7 @@
   [%
     \ExplFileDate\space v\ExplFileVersion\space
     \ExplFileDescription\space (loader)
-  ]
+  ]%
 %    \end{macrocode}
 %
 % \begin{macro}[aux]{\expl at create@bool at option}
@@ -1597,12 +1597,12 @@
 % not \LaTeXe{}!
 %    \begin{macrocode}
 \begingroup
-  \def\tempa{LaTeX2e}
-  \def\next{}
+  \def\tempa{LaTeX2e}%
+  \def\next{}%
   \ifx\fmtname\tempa
     \def\next
       {%
-        \PackageInfo{expl3}{Switching from generic to LaTeX2e loader}
+        \PackageInfo{expl3}{Switching from generic to LaTeX2e loader}%
 %    \end{macrocode}
 % The \cs{relax} stops \cs{RequirePackage} from scanning for a date
 % argument.  Putting \tn{endinput} \emph{after} loading the package is
@@ -1611,8 +1611,8 @@
 % \file{expl3.sty} is open it is impossible to close the file
 % \file{expl3-generic.tex}.
 %    \begin{macrocode}
-        \RequirePackage{expl3} \relax \endinput
-      }
+        \RequirePackage{expl3}\relax \endinput
+      }%
   \fi
 \expandafter\endgroup
 \next
@@ -1626,7 +1626,7 @@
 \else
   \immediate\write-1
     {%
-      Package \ExplFileName\space Info: The package is already loaded.
+      Package \ExplFileName\space Info: The package is already loaded.%
     }%
   \expandafter\endinput
 \fi
@@ -1634,10 +1634,10 @@
   {%
     Package: \ExplFileName\space
     \ExplFileDate\space v\ExplFileVersion\space
-    \ExplFileDescription\space (loader)
-  }
+    \ExplFileDescription\space (loader)%
+  }%
 \expandafter\edef\csname ver@\ExplFileName -generic.tex\endcsname
-  {\ExplFileDate\space v\ExplFileVersion\space \ExplFileDescription}
+  {\ExplFileDate\space v\ExplFileVersion\space \ExplFileDescription}%
 %    \end{macrocode}
 %
 % \begin{variable}[aux]{\l at expl@tidy at tl}
@@ -1648,7 +1648,7 @@
     \catcode64=\the\catcode64\relax
     \let\expandafter\noexpand\csname l at expl@tidy at tl\endcsname
       \noexpand\undefined
-  }
+  }%
 \catcode64=11 %
 %    \end{macrocode}
 % \end{variable}
@@ -1675,13 +1675,13 @@
 %   any existing definition is saved for restoration after the  payload.
 %    \begin{macrocode}
 \let\expl at AtBeginDocument\AtBeginDocument
-\def\AtBeginDocument#1{}
+\def\AtBeginDocument#1{}%
 \expandafter\def\expandafter\l at expl@tidy at tl\expandafter
   {%
     \l at expl@tidy at tl
     \let\AtBeginDocument\expl at AtBeginDocument
     \let\expl at AtBeginDocument\undefined
-  }
+  }%
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
diff --git a/l3kernel/l3bootstrap.dtx b/l3kernel/l3bootstrap.dtx
index c1cd742..dac9617 100644
--- a/l3kernel/l3bootstrap.dtx
+++ b/l3kernel/l3bootstrap.dtx
@@ -57,7 +57,7 @@
       \begingroup
         \catcode 32 = 10 %
         \GetIdInfoAuxI
-    }
+    }%
 %    \end{macrocode}
 %   A first check for a completely empty \textsc{svn} field. If that is
 %   not the case, there is a second case when a file created using
@@ -90,7 +90,7 @@
       \fi
       \tempa
       \GetIdInfoLog
-    }
+    }%
 %    \end{macrocode}
 %   Here, |#1| is |Id|, |#2| is the file name, |#3| is the extension,
 %   |#4| is the version, |#5| is the check in date and |#6| is the check in
@@ -119,14 +119,14 @@
             }%
         \fi
         \tempa
-    }
+    }%
 %    \end{macrocode}
 %   Convert an \textsc{svn}-style date into a \LaTeX{}-style one.
 %    \begin{macrocode}
   \csname protected\endcsname\gdef\GetIdInfoAuxIII$#1-#2-#3$%
     {%
       \def\ExplFileDate{#1/#2/#3}%
-    }
+    }%
 %    \end{macrocode}
 %   During loading of \pkg{expl3}, module information is added to the log.
 %   This function gets redefined once loading is complete.
@@ -138,15 +138,15 @@
           L3 Module:
             \ExplFileName\space
             \ExplFileDate\space v\ExplFileVersion\space \ExplFileDescription
-        }
-    }
+        }%
+    }%
 \endgroup
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
 % \end{macro}
 \GetIdInfo$Id$
-  {L3 Bootstrap code}
+  {L3 Bootstrap code}%
 %</driver|package>
 %<*driver>
 \documentclass[full]{l3doc}
@@ -267,10 +267,10 @@
 % some pretty basic character codes set up.
 %    \begin{macrocode}
 %<*initex>
-\catcode `\{ = 1 \relax
-\catcode `\} = 2 \relax
-\catcode `\# = 6 \relax
-\catcode `\^ = 7 \relax
+\catcode `\{ = 1\relax
+\catcode `\} = 2\relax
+\catcode `\# = 6\relax
+\catcode `\^ = 7\relax
 %</initex>
 %    \end{macrocode}
 %
@@ -278,7 +278,7 @@
 % safe side.
 %    \begin{macrocode}
 %<*initex>
-\catcode `\^^I = 10 \relax
+\catcode `\^^I = 10\relax
 %</initex>
 %    \end{macrocode}
 %
@@ -291,7 +291,7 @@
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname directlua\endcsname\relax
 \else
-  \directlua{tex.enableprimitives("", tex.extraprimitives())}
+  \directlua{tex.enableprimitives("", tex.extraprimitives())}%
 \fi
 %</initex>
 %    \end{macrocode}
@@ -366,7 +366,7 @@
       l3kernel.charcat_table = charcat_table
     }%
 %</package>
-    \directlua{require("expl3")}
+    \directlua{require("expl3")}%
 %    \end{macrocode}
 %   As the user might be making a custom format, no assumption is made about
 %   matching package mode with only loading the \Lua{} code once. Instead, a
@@ -448,7 +448,7 @@
         \def\PackageError#1#2#3%
           {%
             \errhelp{#3}%
-            \errmessage{#1 Error: #2}
+            \errmessage{#1 Error: #2}%
           }%
       \fi
       \edef\next
@@ -490,15 +490,15 @@
 %    \begin{macrocode}
 %<*package>
 \begingroup
-  \def\@tempa{LaTeX2e}
-  \def\next{}
+  \def\@tempa{LaTeX2e}%
+  \def\next{}%
   \ifx\fmtname\@tempa
     \expandafter\ifx\csname extrafloats\endcsname\relax
       \def\next
         {%
           \RequirePackage{etex}%
           \csname reserveinserts\endcsname{32}%
-        }
+        }%
     \fi
   \fi
 \expandafter\endgroup
@@ -517,7 +517,7 @@
 %   \cs{ExplSyntaxOn} is used. For format mode, there is no need to save
 %   category codes so that step is skipped.
 %    \begin{macrocode}
-\protected\def\ExplSyntaxOff{}
+\protected\def\ExplSyntaxOff{}%
 %<*package>
 \protected\edef\ExplSyntaxOff
   {%
@@ -533,7 +533,7 @@
     \catcode 126 = \the\catcode 126\relax
     \endlinechar = \the\endlinechar\relax
     \chardef\csname\detokenize{l__kernel_expl_bool}\endcsname = 0\relax
-  }
+  }%
 %</package>
 %    \end{macrocode}
 % \end{macro}
@@ -555,7 +555,7 @@
 % \begin{variable}{\l__kernel_expl_bool}
 %   The status for experimental code syntax: this is on at present.
 %    \begin{macrocode}
-\chardef\l__kernel_expl_bool = 1 ~
+\chardef\l__kernel_expl_bool = 1\relax
 %    \end{macrocode}
 %\end{variable}
 %

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list