From f0b59d08182c3b8341f3895032956750e30bda76 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Thu, 16 Mar 2023 15:54:24 +0000 Subject: [PATCH] cargo fmt --- i18n-helpers/src/bin/mdbook-gettext.rs | 2 +- i18n-helpers/src/bin/mdbook-xgettext.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/i18n-helpers/src/bin/mdbook-gettext.rs b/i18n-helpers/src/bin/mdbook-gettext.rs index c68ee288..b7bf26e6 100644 --- a/i18n-helpers/src/bin/mdbook-gettext.rs +++ b/i18n-helpers/src/bin/mdbook-gettext.rs @@ -21,7 +21,7 @@ //! is found under `po` directory based on the `book.language`. //! For example, `book.langauge` is set to `ko`, then `po/ko.po` is used. //! You can set `preprocessor.gettext.po-dir` to specify where to find PO -//! files. If the PO file is not found, you'll get the untranslated book. +//! files. If the PO file is not found, you'll get the untranslated book. //! //! See `TRANSLATIONS.md` in the repository root for more information. diff --git a/i18n-helpers/src/bin/mdbook-xgettext.rs b/i18n-helpers/src/bin/mdbook-xgettext.rs index f7e78127..54c3aaf8 100644 --- a/i18n-helpers/src/bin/mdbook-xgettext.rs +++ b/i18n-helpers/src/bin/mdbook-xgettext.rs @@ -91,8 +91,7 @@ fn create_catalog(ctx: &RenderContext) -> anyhow::Result { Some(path) => ctx.config.book.src.join(path), None => continue, }; - for msg in i18n_helpers::extract_msgs(&chapter.content) - { + for msg in i18n_helpers::extract_msgs(&chapter.content) { let source = format!("{}:{}", path.display(), msg.line_number()); add_message(&mut catalog, msg.text(&chapter.content), &source); }