[latex3-commits] [latex3/latex3] main: Drop a redundant pair of braces (e614c42aa)
github at latex-project.org
github at latex-project.org
Thu Feb 29 21:27:06 CET 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/e614c42aa629a22aa8aee23b5c52c9f0f4b4302a
>---------------------------------------------------------------
commit e614c42aa629a22aa8aee23b5c52c9f0f4b4302a
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Thu Feb 29 16:48:28 2024 +0800
Drop a redundant pair of braces
Introduced in 0d7bc91b (Tidy up opacity support for dvisvgm, 2021-01-24).
>---------------------------------------------------------------
e614c42aa629a22aa8aee23b5c52c9f0f4b4302a
l3backend/CHANGELOG.md | 1 +
l3backend/l3backend-opacity.dtx | 2 +-
l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index 8907e821d..95aba7ae0 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -11,6 +11,7 @@ this project uses date-based 'snapshot' version identifiers.
- ExtGState setup for stroking opacity (issue \#1472)
- Inconsistent behavior of opacity functions w/o `pdfmanagement`
(issue \#1473)
+- Redundant braces in opacity backend for dvisvgm
## [2024-02-20]
diff --git a/l3backend/l3backend-opacity.dtx b/l3backend/l3backend-opacity.dtx
index 19a2f7bc2..e0aec11dc 100644
--- a/l3backend/l3backend-opacity.dtx
+++ b/l3backend/l3backend-opacity.dtx
@@ -283,7 +283,7 @@
\cs_new_protected:Npn \@@_backend_fill:n #1
{ \@@_backend:nn {#1} { fill- } }
\cs_new_protected:Npn \@@_backend_stroke:n #1
- { \@@_backend:nn { {#1} } { stroke- } }
+ { \@@_backend:nn {#1} { stroke- } }
\cs_new_protected:Npn \@@_backend:nn #1#2
{ \__kernel_backend_scope:e { #2 opacity = " \fp_eval:n { min(max(0,#1),1) } " } }
% \end{macrocode}
diff --git a/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg b/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg
index af58e9a65..cad677c75 100644
--- a/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg
+++ b/l3experimental/l3opacity/testfiles/m3opacity001.etex-dvisvgm.tlg
@@ -28,7 +28,7 @@ l. ... }
l. ... }
> \box...=
\hbox(6.94444+0.0)x22.50005
-.\special{dvisvgm:raw <g stroke-opacity="{1}">{?nl}}
+.\special{dvisvgm:raw <g stroke-opacity="1">{?nl}}
.\OT1/cmr/m/n/10 H
.\OT1/cmr/m/n/10 e
.\OT1/cmr/m/n/10 l
@@ -61,7 +61,7 @@ l. ... }
l. ... }
> \box...=
\hbox(6.94444+0.0)x22.50005
-.\special{dvisvgm:raw <g stroke-opacity="{0.5}">{?nl}}
+.\special{dvisvgm:raw <g stroke-opacity="0.5">{?nl}}
.\OT1/cmr/m/n/10 H
.\OT1/cmr/m/n/10 e
.\OT1/cmr/m/n/10 l
More information about the latex3-commits
mailing list.