You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, you can use the special_indent parameter to set the first line indentation. The following snippet demonstrates how to set it up, and it has been verified to produce correct DOCX output:
Paragraph::new().add_run(Run::new().add_text(DUMMY)).indent(Some(840),// the left margin of the paragraph Some(SpecialIndentType::FirstLine(720)),// Used to set the first line indentation, hanging indentationNone,None,)
I want to set firstLineChars indent. But I found that I can set it, it's not writen to the xml. Can you add this feature to the crate.
impl BuildXML for Indent {
fn build(&self) -> Vec {
XMLBuilder::new()
.indent(
self.start,
self.special_indent,
self.end.unwrap_or_default(),
self.start_chars,
)
.build()
}
}
The text was updated successfully, but these errors were encountered: