fix: ignore rPrChange (#89)
parent
4bce99003f
commit
4a4a1397f9
|
@ -34,6 +34,9 @@ impl ElementReader for Run {
|
|||
match name.prefix.as_ref().map(std::ops::Deref::deref) {
|
||||
Some("w") => {
|
||||
let e = XMLElement::from_str(&name.local_name).unwrap();
|
||||
|
||||
ignore::ignore_element(e.clone(), XMLElement::RunPropertyChange, r);
|
||||
|
||||
match e {
|
||||
XMLElement::Tab => {
|
||||
run = run.add_tab();
|
||||
|
|
|
@ -27,6 +27,7 @@ pub enum XMLElement {
|
|||
Tab,
|
||||
ParagraphStyle,
|
||||
ParagraphPropertyChange,
|
||||
RunPropertyChange,
|
||||
Indent,
|
||||
Name,
|
||||
Alignment,
|
||||
|
@ -158,6 +159,7 @@ impl FromStr for XMLElement {
|
|||
"p" => Ok(XMLElement::Paragraph),
|
||||
"r" => Ok(XMLElement::Run),
|
||||
"rPr" => Ok(XMLElement::RunProperty),
|
||||
"rPrChange" => Ok(XMLElement::RunPropertyChange),
|
||||
"color" => Ok(XMLElement::Color),
|
||||
"t" => Ok(XMLElement::Text),
|
||||
"sz" => Ok(XMLElement::Size),
|
||||
|
|
Loading…
Reference in New Issue