diff options
| author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-08-17 06:57:12 -0700 |
|---|---|---|
| committer | James E. Blair <corvus@gnu.org> | 2016-11-20 10:41:40 -0800 |
| commit | 712d2c47f6ac3f74ab5ab2bd4db3ed6876461b4e (patch) | |
| tree | 0c81f7c9a073b6e6621e53f371c1b092ecc15d16 /presentty | |
| parent | 01d8f282a472da248d2a70cc2319797974a12501 (diff) | |
| download | presentty-712d2c47f6ac3f74ab5ab2bd4db3ed6876461b4e.tar.gz presentty-712d2c47f6ac3f74ab5ab2bd4db3ed6876461b4e.tar.xz presentty-712d2c47f6ac3f74ab5ab2bd4db3ed6876461b4e.zip | |
Example using tree output and fix for the utf-8 characters that tree uses
Diffstat (limited to 'presentty')
| -rw-r--r-- | presentty/presentty.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/presentty/presentty.py b/presentty/presentty.py index b7589bf..d54d640 100644 --- a/presentty/presentty.py +++ b/presentty/presentty.py @@ -152,7 +152,7 @@ def main(): plt = palette.DARK_PALETTE hinter = slide.ScreenHinter() parser = rst.PresentationParser(plt, hinter) - program = parser.parse(open(args.file).read(), args.file) + program = parser.parse(unicode(open(args.file).read(), 'utf-8'), args.file) if args.warnings: w = parser.warnings.getvalue() if w: |
