Skip to content

Commit

Permalink
Avoid newlines at start and end of help() and version()
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Mar 7, 2024
1 parent fd4cb0b commit e3702b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l3sys-query.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e3702b4

Please sign in to comment.