How to add line numbers to a docx document section using python-docx
<p>I am using <a href="https://pypi.python.org/pypi/python-docx" rel="nofollow">python-docx</a> to generate some documents.</p>

<p>I can see that there exists a <a href="http://officeopenxml.com/WPsectionLineNumbering.php" rel="nofollow">line numbering property</a> which may be applied to document sections (for the <em>OOXML</em> standard at least).</p>

<p>I can also see that this property is not present in the <a href="http://python-docx.readthedocs.io/en/latest/api/section.html#docx.section.Section" rel="nofollow">python-docx API</a>.</p>

<p>I am assuming it is possible to access the underlying <code>sectPr</code> field to add the <code>lnNumType</code> tag, but I have not been able to (easily) find any examples.</p>

<p>Am I getting my standards confused? Or is my question just a bit obscure?</p>