hanging_punctuation property

ParagraphFormat.hanging_punctuation property

Gets or sets a flag indicating whether hanging punctuation is enabled for the current paragraph.

@property
def hanging_punctuation(self) -> bool:
    ...

@hanging_punctuation.setter
def hanging_punctuation(self, value: bool):
    ...

Examples

Shows how to set special properties for Asian typography.

doc = aw.Document(file_name=MY_DIR + 'Document.docx')
format = doc.first_section.body.first_paragraph.paragraph_format
format.far_east_line_break_control = True
format.word_wrap = False
format.hanging_punctuation = True
doc.save(file_name=ARTIFACTS_DIR + 'ParagraphFormat.AsianTypographyProperties.docx')

See Also