From 481c540ca1c9a617f0ccece76dc68b22437b30bf Mon Sep 17 00:00:00 2001 From: Jilani Syed Date: Wed, 15 Nov 2023 09:07:58 +0530 Subject: [PATCH] renamed file for correct spelling --- src/reader/driver.rs | 2 +- src/structs/numbering_format.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reader/driver.rs b/src/reader/driver.rs index b76215cf..b07e4603 100644 --- a/src/reader/driver.rs +++ b/src/reader/driver.rs @@ -92,7 +92,7 @@ pub(crate) fn get_attribute_value(attr: &Attribute) -> Result String { +pub(crate) fn convert_character_reference(src: &str) -> String { src.replace("&", "&") .replace("<", "<") .replace(">", ">") diff --git a/src/structs/numbering_format.rs b/src/structs/numbering_format.rs index 9d225f27..8a9f69d6 100644 --- a/src/structs/numbering_format.rs +++ b/src/structs/numbering_format.rs @@ -148,7 +148,7 @@ impl NumberingFormat { .parse::() .unwrap(); self.format_code = - condvert_character_reference(get_attribute(e, b"formatCode").unwrap().as_str()); + convert_character_reference(get_attribute(e, b"formatCode").unwrap().as_str()); self.is_build_in = false; }