summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/demo.rst16
-rw-r--r--presentty/presentty.py2
2 files changed, 17 insertions, 1 deletions
diff --git a/example/demo.rst b/example/demo.rst
index e202bc2..03900db 100644
--- a/example/demo.rst
+++ b/example/demo.rst
@@ -142,6 +142,22 @@ ANSI Art
142 142
143.. ansi:: ansi.ans 143.. ansi:: ansi.ans
144 144
145
146Nice filesystem listings
147========================
148
149.. container:: handout
150
151 You can cut and paste the output of tree to make nice filesystem listings.
152
153.. code::
154
155 files
156 ├── hello
157 └── world
158
1590 directories, 2 files
160
145Images 161Images
146====== 162======
147.. container:: handout 163.. container:: handout
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():
152 plt = palette.DARK_PALETTE 152 plt = palette.DARK_PALETTE
153 hinter = slide.ScreenHinter() 153 hinter = slide.ScreenHinter()
154 parser = rst.PresentationParser(plt, hinter) 154 parser = rst.PresentationParser(plt, hinter)
155 program = parser.parse(open(args.file).read(), args.file) 155 program = parser.parse(unicode(open(args.file).read(), 'utf-8'), args.file)
156 if args.warnings: 156 if args.warnings:
157 w = parser.warnings.getvalue() 157 w = parser.warnings.getvalue()
158 if w: 158 if w: