From 30789b47ecf86cee65e02672cce70f5073a6b99d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 20 Oct 2023 16:49:10 +0200 Subject: improve formatting --- src/main.rs | 4 ++-- 1 file 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#"  {}  
{}"#, + r#"
  {}  
{}
"#, 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#"{} 【{}】"#, 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")) { -- cgit v1.2.3