Skip to content

Commit

Permalink
Drop a redundant pair of braces
Browse files Browse the repository at this point in the history
Introduced in 0d7bc91 (Tidy up opacity support for dvisvgm, 2021-01-24).
  • Loading branch information
muzimuzhi authored and josephwright committed Feb 29, 2024
1 parent be05bc8 commit e614c42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions l3backend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion l3backend/l3backend-opacity.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e614c42

Please sign in to comment.