diff options
| -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> |
