[latex3-commits] [latex3/l3build] main: Ensure `ps2pdfopts` is followed by a space (4346c02)

github at latex-project.org github at latex-project.org
Sun Jul 16 21:08:06 CEST 2023


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/4346c02b6feaf051f51a8a8e4ee1be7eb0e9aa73

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

commit 4346c02b6feaf051f51a8a8e4ee1be7eb0e9aa73
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Fri Mar 3 06:56:16 2023 +0800

    Ensure `ps2pdfopts` is followed by a space


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

4346c02b6feaf051f51a8a8e4ee1be7eb0e9aa73
 CHANGELOG.md            | 3 +++
 l3build-typesetting.lua | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 543f4eb..90c1ced 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -36,6 +36,9 @@ this project uses date-based 'snapshot' version identifiers.
 - Include UNIX timestamps in generated ZIP files
 - Normalize pdfTeX `.enc` file loading
 
+### Fixed
+- Ensure when used, value of `ps2pdfopts` is surrounded by a space on both sides
+
 ## [2023-02-26]
 
 ### Changed
diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua
index 2a7dbad..52f4ef8 100644
--- a/l3build-typesetting.lua
+++ b/l3build-typesetting.lua
@@ -61,7 +61,7 @@ function dvitopdf(name, dir, engine, hide)
     "dvips " .. name .. dviext
       .. (hide and (" > " .. os_null) or "")
       .. os_concat ..
-    "ps2pdf " .. ps2pdfopts .. name .. psext
+    "ps2pdf " .. ps2pdfopts .. " " .. name .. psext
       .. (hide and (" > " .. os_null) or ""),
     dir
   )





More information about the latex3-commits mailing list.