lpod.paragraph_base

class lpod.paragraph_base.paragraph_base(native_element, cache=None)

Bases: lpod.element.odf_element

Base class for paragraph like classes.

append_plain_text(text=u'', encoding=None)

Append unicode plain text to the paragraph, replacing <CR>, <TAB> and multiple spaces by ODF corresponding tags.

get_formatted_text(context=None, simple=False)
get_style()
get_text_style()
set_style(name)
set_text_style(name)
lpod.paragraph_base.odf_create_line_break()

This element represents a line break.

Return odf_element

lpod.paragraph_base.odf_create_spaces(number=1)

This element shall be used to represent the second and all following “ “ (U+0020, SPACE) characters in a sequence of “ “ (U+0020, SPACE) characters. Note: It is not an error if the character preceding the element is not a white space character, but it is good practice to use this element only for the second and all following SPACE characters in a sequence.

Arguments:

number – int

Return odf_element

lpod.paragraph_base.odf_create_tabulation(position=None)

This element represents the [UNICODE] tab character (HORIZONTAL TABULATION, U+0009).

The position attribute contains the number of the tab-stop to which a tab character refers. The position 0 marks the start margin of a paragraph. Note: The position attribute is only a hint to help non-layout oriented consumers to determine the tab/tab-stop association. Layout oriented consumers should determine the tab positions based on the style information

Arguments:

number – int

Return odf_element

Previous topic

lpod.paragraph

Next topic

lpod.reference

This Page