diff options
author | michaelx386 <michaelx386@gmail.com> | 2015-09-18 17:51:49 +0100 |
---|---|---|
committer | michaelx386 <michaelx386@gmail.com> | 2015-09-18 17:51:49 +0100 |
commit | fd832267cf7b55b4d3cdc56e313eb2bec215cc55 (patch) | |
tree | 5f5c1d33edb52ef12a332b67a637999099f4c063 /tests/files | |
parent | 8b154c0d5b9268d5e41a7774d6e87bbbac1a33e4 (diff) | |
download | screenplain-fd832267cf7b55b4d3cdc56e313eb2bec215cc55.tar.gz |
Parse files with BOM present; fixes #5
Diffstat (limited to 'tests/files')
-rw-r--r-- | tests/files/utf-8-bom.fountain | 18 | ||||
-rw-r--r-- | tests/files/utf-8-bom.fountain.fdx | 43 | ||||
-rw-r--r-- | tests/files/utf-8-bom.fountain.html | 6 |
3 files changed, 67 insertions, 0 deletions
diff --git a/tests/files/utf-8-bom.fountain b/tests/files/utf-8-bom.fountain new file mode 100644 index 0000000..ddfe1f9 --- /dev/null +++ b/tests/files/utf-8-bom.fountain @@ -0,0 +1,18 @@ +EXT. SOMEWHERE - DAY
+
+GUY and GURL walk down the street.
+
+It's a sunny day.
+Sunnier than normal.
+Too sunny to be funny.
+
+GUY
+So what's up?
+
+GURL
+Nothing much.
+Just thinking.
+And you?
+
+GUY
+Nothing.
\ No newline at end of file diff --git a/tests/files/utf-8-bom.fountain.fdx b/tests/files/utf-8-bom.fountain.fdx new file mode 100644 index 0000000..9701f3a --- /dev/null +++ b/tests/files/utf-8-bom.fountain.fdx @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no" ?> +<FinalDraft DocumentType="Script" Template="No" Version="1"> + + <Content> + <Paragraph Type="Scene Heading"> + <Text>EXT. SOMEWHERE - DAY</Text> + </Paragraph> + <Paragraph Type="Action"> + <Text>GUY and GURL walk down the street.</Text> + </Paragraph> + <Paragraph Type="Action"> + <Text>It's a sunny day. +</Text> + <Text>Sunnier than normal. +</Text> + <Text>Too sunny to be funny.</Text> + </Paragraph> + <Paragraph Type="Character"> + <Text>GUY</Text> + </Paragraph> + <Paragraph Type="Dialogue"> + <Text>So what's up?</Text> + </Paragraph> + <Paragraph Type="Character"> + <Text>GURL</Text> + </Paragraph> + <Paragraph Type="Dialogue"> + <Text>Nothing much.</Text> + </Paragraph> + <Paragraph Type="Dialogue"> + <Text>Just thinking.</Text> + </Paragraph> + <Paragraph Type="Dialogue"> + <Text>And you?</Text> + </Paragraph> + <Paragraph Type="Character"> + <Text>GUY</Text> + </Paragraph> + <Paragraph Type="Dialogue"> + <Text>Nothing.</Text> + </Paragraph> + </Content> +</FinalDraft> diff --git a/tests/files/utf-8-bom.fountain.html b/tests/files/utf-8-bom.fountain.html new file mode 100644 index 0000000..70043dd --- /dev/null +++ b/tests/files/utf-8-bom.fountain.html @@ -0,0 +1,6 @@ +<h6>EXT. SOMEWHERE - DAY</h6> +<div class="action"><p>GUY and GURL walk down the street.</p></div> +<div class="action"><p>It's a sunny day.<br/>Sunnier than normal.<br/>Too sunny to be funny.</p></div> +<div class="dialog"><p class="character">GUY</p><p>So what's up?</p></div> +<div class="dialog"><p class="character">GURL</p><p>Nothing much.</p><p>Just thinking.</p><p>And you?</p></div> +<div class="dialog"><p class="character">GUY</p><p>Nothing.</p></div> |