Closed drvnm closed 3 years ago
at the moment, all tags are deleted during generation, I will try to add a flag for saving tags in the next update.
@PavelS0 thanks :)
@PavelS0 would you have a time estimate on the update? id love to use this in my project
content inside tags now saved if it not filled. Fixed in c86a1b7
@PavelS0 thanks for working on this, but is it possible for the tags to be saved instead of the content inside them?
@PavelS0 will this be fixed?
added in 5b786b9 added new enum:
/// [removeAll] - remove all sdt tags from document
///
/// [saveNullified] - save ONLY tags where [Content] is null
///
/// [saveText] - save ALL TextContent field (include nullifed [Content])
///
enum TagPolicy { removeAll, saveNullified, saveText }
it must be passed as argument
docx.generate(c, tagPolicy: TagPolicy.saveNullified);
works, thanks!
i have a few tags which i dont want to get deleted when i dont fill them, enabling the option "never delete this tag" in word doesnt work, how can i do this?