mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
refactor/add fill attr to io clozes
This commit is contained in:
parent
e886d87c53
commit
3b056c98d6
1 changed files with 2 additions and 12 deletions
|
|
@ -64,19 +64,9 @@ pub fn get_image_cloze_data(text: &str) -> String {
|
|||
}
|
||||
for property in occlusion.properties {
|
||||
match property.name.as_str() {
|
||||
"left" => {
|
||||
"left" | "top" | "angle" | "fill" => {
|
||||
if !property.value.is_empty() {
|
||||
result.push_str(&format!("data-left=\"{}\" ", property.value));
|
||||
}
|
||||
}
|
||||
"top" => {
|
||||
if !property.value.is_empty() {
|
||||
result.push_str(&format!("data-top=\"{}\" ", property.value));
|
||||
}
|
||||
}
|
||||
"angle" => {
|
||||
if !property.value.is_empty() {
|
||||
result.push_str(&format!("data-angle=\"{}\" ", property.value));
|
||||
result.push_str(&format!("data-{}=\"{}\" ", property.name, property.value));
|
||||
}
|
||||
}
|
||||
"width" => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue