StyledParagraph

report_paragraph TPTReport.StyledParagraph(string text)

This function generates a paragraph with styled text. Style attributes can be given to text fragments by using a HTML like syntax. Only the following attributes are available which may not be nested:

Parameters:

text the text for this paragraph together with style attributes.

Returns:

the new paragraph that can be added to report

Examples:

   # create a bold and underlined paragraph in report
   p = TPTReport.StyledParagraph(r"This <u>is</u> an <b>example</b>.");
   TPTReport.add(p);