[latex3-commits] [git/LaTeX3-latex3-latex3] master: Fix tagging for expl3/.tex files (0d51f66)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun May 13 08:09:30 CEST 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/0d51f667fb313c4b748cd54dc7fae90ecc9c1234

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

commit 0d51f667fb313c4b748cd54dc7fae90ecc9c1234
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun May 13 07:09:30 2018 +0100

    Fix tagging for expl3/.tex files


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

0d51f667fb313c4b748cd54dc7fae90ecc9c1234
 l3kernel/build.lua |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/l3kernel/build.lua b/l3kernel/build.lua
index a82ddaf..11903bf 100644
--- a/l3kernel/build.lua
+++ b/l3kernel/build.lua
@@ -48,8 +48,8 @@ function update_tag(file,content,tagname,tagdate)
   local iso = "%d%d%d%d%-%d%d%-%d%d"
   if string.match(file,"expl3%.dtx$") then
     content = string.gsub(content,
-      "\n\\def\\ExplFileDate{" .. iso .. "}\n",
-      "\n\\def\\ExplFileDate{" .. tagname .. "}\n")
+      "\n\\def\\ExplFileDate{" .. iso .. "}%%\n",
+      "\n\\def\\ExplFileDate{" .. tagname .. "}%%\n")
   elseif string.match(file,"l3drivers%.dtx$") then
     content = string.gsub(content,
       "\n  ({l3%w+%.def}){" .. iso .. "}",
@@ -57,14 +57,14 @@ function update_tag(file,content,tagname,tagdate)
   end
   if string.match(file,"%.dtx$") or string.match(file,"%.tex$") then
     return string.gsub(content,
-      "\n%% \\date{Released " .. iso .. "}\n",
-      "\n%% \\date{Released " .. tagname .. "}\n")
+      "\n(%%*%s*)\\date{Released " .. iso .. "}\n",
+      "\n%1\\date{Released " .. tagname .. "}\n")
   elseif string.match(file, "%.md$") then
     return string.gsub(content,
       "\nRelease " .. iso .. "\n",
       "\nRelease " .. tagname .. "\n")
   end
-  return contents
+  return content
 end
 
 function cmdcheck()





More information about the latex3-commits mailing list