Jason R. Coombs avatar Jason R. Coombs committed 66c96e2

Added example to demonstrate introspecting the generated document

Comments (0)

Files changed (1)

     <Element {http://schemas.openxmlformats.org/wordprocessingml/2006/main}p at 0x22a12d0>
     >>> doc.save('mydoc.docx')
 
-You can also append tables to the document::
+Using `part-edit` from `Openpack <http://bitbucket.org/yougov/openpack>`_,
+one can see the document that was constructed::
+
+    > EDITOR=cat part-edit mydoc.docx/word/document.xml
+    <w:document xmlns:dcterms="http://purl.org/dc/terms/" xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+      <w:body>
+        <w:p>
+          <w:pPr>
+            <w:pStyle w:val="Heading 1"/>
+          </w:pPr>
+          <w:r>
+            <w:t>Things to do</w:t>
+          </w:r>
+        </w:p>
+        <w:p>
+          <w:r>
+            <w:t>First, spend some time learning paradocx usage.</w:t>
+          </w:r>
+        </w:p>
+        <w:p>
+          <w:r>
+            <w:t>Then, put together some examples</w:t>
+          </w:r>
+        </w:p>
+        <w:p>
+          <w:r>
+            <w:t>Finally, put those examples in the paradocx documentation</w:t>
+          </w:r>
+        </w:p>
+      </w:body>
+    </w:document>
+
+
+One may also append tables to a document::
 
     >>> import paradocx
     >>> doc = paradocx.Document()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.