ListHandler

Overview

ListHandler is a class in Aspose.Words for Python.

Handles parsing and conversion of lists.

Properties

NameTypeAccessDescription
options``ReadProvides configurable settings that affect list handling behavior

Methods

SignatureDescription
__init__(options: ConversionOptions, reader: Optional[DocumentReader])
set_reader(reader: DocumentReader)Set the document reader for numbering lookups.
reset()Reset list state for new document.
get_list_info(para: ParagraphData)tuple[bool, int, str, str]Get list information for a paragraph.
format_list_item(text: str, level: int, marker: str)strFormat a list item with proper indentation.
break_list()Signal that the current list has been broken (e.g., by a regular paragraph).