bokuweb / docx-rs

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

Level pstyle #737

Closed git-noise closed 2 months ago

git-noise commented 2 months ago

Describe the bug

It seems that Level pstyle field is currently not used when serializing Level to XML.

Reproduced step

See https://github.com/bokuweb/docx-rs/blob/main/docx-core/src/documents/elements/level.rs#L127

Expected behavior

When set, pstyle should we written to XML.

Actual behavior

Within a level, pstyle seems to be ignored when building the XML document.

Screenshots

N/A

git-noise commented 2 months ago

Hello, I sent a PR for review.