fix: viewBox translation by not accidentally stringifying literals (#3527)
* fix: don't double stringify lits * also split off namespaces in translation
This commit is contained in:
1 parent
a3812d66da
commit
343c48f5ad
4 files changed
+109
-3
No files matched your search
@@ -63,7 +63,7 @@ macro_rules! html_to_rsx_attribute_mapping {
|
||||
$(#[$attr:meta])*
|
||||
$name:ident: $lit:literal;
|
||||
) => {
|
||||
if $matching == stringify!($lit) {
|
||||
if $matching == $lit {
|
||||
return Some(stringify!($name));
|
||||
}
|
||||
};
|
||||
@@ -72,7 +72,7 @@ macro_rules! html_to_rsx_attribute_mapping {
|
||||
$(#[$attr:meta])*
|
||||
$name:ident: $lit:literal in $ns:literal;
|
||||
) => {
|
||||
if $matching == stringify!($lit) {
|
||||
if $matching == $lit {
|
||||
return Some(stringify!($name));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user