diff options
author | Martin Vilcans <martin@librador.com> | 2012-07-22 22:54:39 +0200 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2012-07-22 22:54:39 +0200 |
commit | 246083dfac14dc5ebb4e787558b8bd134fc66996 (patch) | |
tree | 31ce227bdab67915e5160dcb219acf8b872861dd | |
parent | f0fea172c34f62f8a35b1c28549e25e4a30589c5 (diff) | |
download | screenplain-246083dfac14dc5ebb4e787558b8bd134fc66996.tar.gz |
Fixed runtime error on HTML output of dual dialogue.
Thanks for the bug report, Dahlia!
-rw-r--r-- | screenplain/export/html.py | 2 | ||||
-rw-r--r-- | tests/files/dual-dialogue.fountain | 5 | ||||
-rw-r--r-- | tests/files/dual-dialogue.fountain.html | 1 |
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> |