Mercurial > jouvence
diff README.rst @ 20:f21776c7fbfc
Fix API usage in README file.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Jan 2017 09:27:48 -0800 |
parents | ee741bbe96a8 |
children | 142a53d6e558 |
line wrap: on
line diff
--- a/README.rst Wed Jan 04 09:19:24 2017 -0800 +++ b/README.rst Wed Jan 04 09:27:48 2017 -0800 @@ -47,8 +47,9 @@ parser = JouvenceParser() document = parser.parse(path_to_file) renderer = HtmlDocumentRenderer() - markup = renderer.render_doc(document) - return markup + with open(path_to_output, 'w') as fp: + renderer.render_doc(document, fp) + Limitations