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; }