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

add Paragraph borders #642

Closed Griklit closed 1 year ago

Griklit commented 1 year ago

I added paragraph borders, however, there is some trouble:

  1. due to the life cycle of XML-rs, it's hard to add attr dynamically to the extent that it's hard to add an Option type to the border, and I can't seem to solve this problem at my current level. I've left some commented out code in there, as well as the parameter space which should logically be of type Option as well.

  2. something is inexplicably wrong with my linux environment, so much so that this code was written on windows, I'm assured that the paragraph borders work fine, but I can't test & update the snapshot.

bokuweb commented 1 year ago

@Griklit Thanks for your great work!!

Griklit commented 1 year ago

@Griklit Thanks for your great work!!

So, is there any way to add xml attributes dynamically?

bokuweb commented 1 year ago

@Griklit

So, is there any way to add xml attributes dynamically?

Currently there is no way