def inline_inputs ( self ) : self . text = texutils . inline ( self . text , os . path . dirname ( self . _filepath ) ) # Remove children self . _children = { }
python docx template filled but still editable
Inline all input latex files references by this document . The inlining is accomplished recursively . The document is modified in place .
def inline_inputs(self):
        """Inline all input latex files references by this document. The
        inlining is accomplished recursively. The document is modified
        in place.
        """
        self.text = texutils.inline(self.text,
                                    os.path.dirname(self._filepath))
        # Remove children
        self._children = {}