File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1116,6 +1116,8 @@ module type Wrapped_functions = sig
1116
1116
val string_of_orient : (Svg_types.Unit .angle option , string ) Xml .W .ft
1117
1117
1118
1118
val string_of_paint : ([< Svg_types .paint ], string ) Xml .W .ft
1119
+
1120
+ val string_of_opacity : (float , string ) Xml .W .ft
1119
1121
1120
1122
val string_of_fill_rule : ([< Svg_types .fill_rule ], string ) Xml .W .ft
1121
1123
Original file line number Diff line number Diff line change @@ -501,12 +501,12 @@ let fill_opacity =
501
501
in
502
502
503
503
let v =
504
- if group_matched 2 s then [ % expr [ % e n] /. 100. ]
505
- else [% expr [ % e n] ] in
504
+ if group_matched 2 s then ([ % e n] /. 100. )
505
+ else [% e n] in
506
506
507
- if v > = 0. && v < = 1. then Some v
507
+ if v > = 0. && v < = 1. then Some [ % expr v]
508
508
else
509
- Common. error loc " Value of %s must be between 0 and 1." name in
509
+ Common. error loc " Value of %s must be between 0 and 1." name
510
510
end [@ metaloc loc]
511
511
512
512
let fill_rule ?separated_by :_ ?default:_ loc _name s =
You can’t perform that action at this time.
0 commit comments