diff --git a/docx.py b/docx.py index 80acd2b..0689355 100755 --- a/docx.py +++ b/docx.py @@ -149,66 +149,69 @@ def pagebreak(type='page', orient='portrait'): def paragraph(paratext, style='BodyText', breakbefore=False, jc='left'): - '''Make a new paragraph element, containing a run, and some text. - Return the paragraph element. + """ + Return a new paragraph element containing *paratext*. The paragraph's + default style is 'Body Text', but a new style may be set using the + *style* parameter. @param string jc: Paragraph alignment, possible values: left, center, right, both (justified), ... see http://www.schemacentral.com/sc/ooxml/t-w_ST_Jc.html for a full list - If paratext is a list, spawn multiple run/text elements. - Support text styles (paratext must then be a list of lists in the form - /