diff options
author | Alex Auvolat <alex@adnab.me> | 2023-10-20 16:49:10 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-10-20 16:49:10 +0200 |
commit | 30789b47ecf86cee65e02672cce70f5073a6b99d (patch) | |
tree | a53e7cf1e7e193eff9c1c075bf91c59fd0734863 /src | |
parent | 2a919c1f028d891744d37ad45664986b6cba4a5d (diff) | |
download | datagengo-30789b47ecf86cee65e02672cce70f5073a6b99d.tar.gz datagengo-30789b47ecf86cee65e02672cce70f5073a6b99d.zip |
improve formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
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"> {} </span><br />{}</td></tr>"#, + r#"<tr><td><details><summary class="tab_large font_ja"> {} </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")) { |