[latex3-commits] [latex3/l3sys-query] main: Avoid newlines at start and end of help() and version() (e3702b4)

github at latex-project.org github at latex-project.org
Thu Mar 7 08:32:28 CET 2024


Repository : https://github.com/latex3/l3sys-query
On branch  : main
Link       : https://github.com/latex3/l3sys-query/commit/e3702b4de583c443fb8abd134ebb1f035fb4317e

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

commit e3702b4de583c443fb8abd134ebb1f035fb4317e
Author: Joseph Wright <joseph at texdev.net>
Date:   Thu Mar 7 07:32:28 2024 +0000

    Avoid newlines at start and end of help() and version()


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

e3702b4de583c443fb8abd134ebb1f035fb4317e
 l3sys-query.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/l3sys-query.lua b/l3sys-query.lua
index 909bb07..cff5b6c 100755
--- a/l3sys-query.lua
+++ b/l3sys-query.lua
@@ -35,7 +35,7 @@ for those people who are interested.
 --
 -- Details of the script itself, etc.
 --
-local copyright = "Copyright (C) 2024 The LaTeX Project\n"
+local copyright = "Copyright (C) 2024 The LaTeX Project"
 local release_date = "2024-03-03"
 local script_desc = "System queries for LaTeX using Lua\n"
 local script_name = "l3sys-query"
@@ -358,7 +358,7 @@ local function help()
   end
 
   -- 'Header' of fixed info
-  print("\nUsage: " .. script_name .. " <cmd> [<options>] [<spec>]\n")
+  print("Usage: " .. script_name .. " <cmd> [<options>] [<spec>]\n")
   print("Valid commands are:")
 
   -- Sort the commands, pad the descriptions, print
@@ -392,7 +392,7 @@ local function help()
 end
 
 local function version()
-  print("\n" .. script_name .. ": " .. script_desc .. "\nRelease " 
+  print(script_name .. ": " .. script_desc .. "\nRelease " 
     .. release_date .. "\n" .. copyright)
 end
 





More information about the latex3-commits mailing list.