#! python3
"""Read docx

Accepts a filename of a .docx file and returns a single string value of its text.

Note:
    * Example .docx files can be downloaded from http://nostarch.com/automatestuff/
"""


def getText(filename: str) -> str:
    """Get text

    Gets text from a given .docx file.

    Args:
         filename: Path to .docx file to get text from.

    Returns:
        String with all document text.
    """
    doc = docx.Document(filename)
    fullText = []
    for para in doc.paragraphs:
        fullText.append(para.text)
        #fullText.append(' ' + para.text)  # Alt: indent each paragraph
    return "\n".join(fullText)
    #return "\n\n".join(fullText)  # Alt: double space between paragraphs

@@ -196,16 +196,29 @@
 f/%0A%22%22%22%0A%0A
+import docx%0A%0A
 %0Adef get

Revert "Update P5_readDocx.py removed import for sphinx"