Skip to content

Commit

Permalink
Merge pull request #144 from agentjill/patch
Browse files Browse the repository at this point in the history
fixed spelling mistake
  • Loading branch information
MathNya authored Nov 15, 2023
2 parents f0d8759 + 481c540 commit 4b571b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/reader/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub(crate) fn get_attribute_value(attr: &Attribute) -> Result<String, FromUtf8Er
String::from_utf8(value)
}

pub(crate) fn condvert_character_reference(src: &str) -> String {
pub(crate) fn convert_character_reference(src: &str) -> String {
src.replace("&amp;", "&")
.replace("&lt;", "<")
.replace("&gt;", ">")
Expand Down
2 changes: 1 addition & 1 deletion src/structs/numbering_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl NumberingFormat {
.parse::<u32>()
.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;
}

Expand Down

0 comments on commit 4b571b2

Please sign in to comment.