aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2012-07-22 22:54:39 +0200
committerMartin Vilcans <martin@librador.com>2012-07-22 22:54:39 +0200
commit246083dfac14dc5ebb4e787558b8bd134fc66996 (patch)
tree31ce227bdab67915e5160dcb219acf8b872861dd
parentf0fea172c34f62f8a35b1c28549e25e4a30589c5 (diff)
downloadscreenplain-246083dfac14dc5ebb4e787558b8bd134fc66996.tar.gz
Fixed runtime error on HTML output of dual dialogue.
Thanks for the bug report, Dahlia!
-rw-r--r--screenplain/export/html.py2
-rw-r--r--tests/files/dual-dialogue.fountain5
-rw-r--r--tests/files/dual-dialogue.fountain.html1
3 files changed, 7 insertions, 1 deletions
diff --git a/screenplain/export/html.py b/screenplain/export/html.py
index 2243780..09bf16a 100644
--- a/screenplain/export/html.py
+++ b/screenplain/export/html.py
@@ -111,7 +111,7 @@ class Formatter(object):
self._write_dialog_block(dual.left)
with self._tag('div', classes='right'):
self._write_dialog_block(dual.right)
- out.write('<br />')
+ self.out.write('<br />')
def _write_dialog_block(self, dialog):
with self._tag('p', classes='character'):
diff --git a/tests/files/dual-dialogue.fountain b/tests/files/dual-dialogue.fountain
new file mode 100644
index 0000000..b1cbc36
--- /dev/null
+++ b/tests/files/dual-dialogue.fountain
@@ -0,0 +1,5 @@
+GIRL
+Hey!
+
+GUY^
+Hello!
diff --git a/tests/files/dual-dialogue.fountain.html b/tests/files/dual-dialogue.fountain.html
new file mode 100644
index 0000000..4ed6a06
--- /dev/null
+++ b/tests/files/dual-dialogue.fountain.html
@@ -0,0 +1 @@
+<div class="dual"><div class="left"><p class="character">GIRL</p><p>Hey!</p></div><div class="right"><p class="character">GUY</p><p>Hello!</p></div><br /></div>