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

Option to disable "Automatically resize to fit contents" table option #663

Open KiloOscarSix opened 9 months ago

KiloOscarSix commented 9 months ago

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

When the text uses a long string of characters (like a web link) the table will automatically change the widths of the table to the detriment of readability. Disabling "Automatically resize to fit contents" will use word wrap to fit the content in the cell and the preferred width.

Describe the solution you'd like

A function on the Table struct to disable/enable this option. Additionally, it could be beneficial to automatically set this option depending on if .width() is called.