From 0b7b96267a4151d00e31c50946d088701689db34 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 10 Oct 2023 10:20:19 +0200 Subject: ensure sans-serif font is used in all browsers --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index b69a2da..ba31b5a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1168,7 +1168,7 @@ fn format_batch_aux<'a>( for ex in batch.extra_examples.iter() { writeln!( f, - r#"  {}  
{}"#, + r#"  {}  
{}"#, ex.ja, ex.en )?; } @@ -1192,7 +1192,7 @@ fn format_vocab(f: &mut impl Write, vocab: &[&JlptVocab], t: &str) -> Result<()> for v in vocab { writeln!( f, - r#"{}  {}  {}{}"#, + r#"{}  {}  {}{}"#, v.level, v.kanji, v.en, v.kana )?; } @@ -1259,7 +1259,7 @@ fn format_index(batches: &[Batch], kanji_levels: &[(String, String)]) -> Result< for (i, batch) in batches.iter().enumerate() { writeln!( f, - r#"{:03}{}{}  {}{}{}{}"#, + r#"{:03}{}{}  {}{}{}{}"#, i, i, batch.level, @@ -1293,7 +1293,7 @@ fn format_index(batches: &[Batch], kanji_levels: &[(String, String)]) -> Result< let missing = chars.diff(&all_chars); writeln!( f, - "{}{}{}{} ({})", + r#"{}{}{}{} ({})"#, lvl, chars.len(), chars.to_string(), -- cgit v1.2.3