handle transparent images when importing symbols

This commit is contained in:
GenevensiS
2026-02-06 03:17:46 +01:00
parent 857bfb6c9c
commit d2dce6617d
16 changed files with 57 additions and 5 deletions
+3 -2
View File
@@ -194,10 +194,11 @@ String compute_new_variable_value(const String& str, const String& tag, size_t s
}
while (end_i < str.size() &&
is_formatting_tag(str, end_i)) {
end_i = str.find_first_of(">", end_i) + 1;
end_i = str.find_first_of(">", end_i);
if (end_i != String::npos) end_i++;
}
String prefix(substr(str, 0, start_i));
String suffix(substr(str, end_i));
String suffix = end_i == String::npos ? String() : substr(str, end_i);
String selection(substr(str, start_i, end_i - start_i));
// tally open tags that are variants of this tag