bokuweb / docx-rs

:memo: A .docx file writer with Rust/WebAssembly.
https://bokuweb.github.io/docx-rs/
MIT License
334 stars 57 forks source link

Section property not passing/translating type #665

Closed gjblajian closed 9 months ago

gjblajian commented 9 months ago

@bokuweb

Is your feature request related to a problem? Please describe.

Yes, we need to be able to determine the type of section break being imported/parsed

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] The type defined in the XML is not being translated into the output of the readDocx() function

Describe the solution you'd like

when a type is present in the Section Properties we would like the type to be translated into the readDocx() output

A clear and concise description of what you want to happen. when the hghlighted type indicator is present in the XML image

we would like the output to contain the same type indicator in the json image

Describe alternatives you've considered

N/A

A clear and concise description of any alternative solutions or features you've considered. N/A

Additional context

Add any other context or screenshots about the feature request here.

intellinui commented 9 months ago

@bokuweb any help would be appreciated as different section types behavior differently.

bokuweb commented 9 months ago

I'll fix it later

intellinui commented 9 months ago

@bokuweb thank you thank you thank you

bokuweb commented 9 months ago
<xsd:restriction base="xsd:string">
  <xsd:enumeration value="nextPage"/>
  <xsd:enumeration value="nextColumn"/>
  <xsd:enumeration value="continuous"/>
  <xsd:enumeration value="evenPage"/>
  <xsd:enumeration value="oddPage"/>
</xsd:restriction>
bokuweb commented 9 months ago

@gjblajian @intellinui Please try 0.0.278 rc26