aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 598f147..d877fce 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1215,7 +1215,7 @@ fn format_batch_aux<'a>(
for ex in batch.extra_examples.iter() {
writeln!(
f,
- r#"<tr><td style="text-align: center"><span class="tab_large font_ja">&nbsp;&nbsp;{}&nbsp;&nbsp;</span><br />{}</td></tr>"#,
+ r#"<tr><td><details><summary class="tab_large font_ja">&nbsp;&nbsp;{}&nbsp;&nbsp;</summary><div style="text-align: center">{}</div></details></td></tr>"#,
ex.ja, ex.en
)?;
}
@@ -1271,7 +1271,7 @@ fn dict_str<'a>(qkeb: &str, qreb: Option<&str>, ent: &roxmltree::Node<'a, 'a>) -
return None;
}
- let mut ret = format!("{} [{}]", qkeb, reb);
+ let mut ret = format!(r#"<span class="font_ja">{} 【{}】</span>"#, qkeb, reb);
for sense in ent.children().filter(|x| x.has_tag_name("sense")) {
if let Some(s) = sense.children().find(|x| x.has_tag_name("gloss")) {