aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2016-04-14 00:10:15 +0200
committerMartin Vilcans <martin@librador.com>2016-04-14 00:34:04 +0200
commite76e044308a8d3b5fa93bc9a2657897c480bb782 (patch)
treed1834af5806fcf7b4d609db2163a8f6fcc5d29db /tests
parent355b16004a57d5b23ef0e31adb818b5dabae3c86 (diff)
downloadscreenplain-e76e044308a8d3b5fa93bc9a2657897c480bb782.tar.gz
Show multiple spaces in a row as is in HTML & PDF
Not sure if FDX output should use &nbsp; Let's keep using spaces for now. Closes #30
Diffstat (limited to 'tests')
-rw-r--r--tests/files/indentation.fountain11
-rw-r--r--tests/files/indentation.fountain.fdx24
-rw-r--r--tests/files/indentation.fountain.html6
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/files/indentation.fountain b/tests/files/indentation.fountain
new file mode 100644
index 0000000..1640032
--- /dev/null
+++ b/tests/files/indentation.fountain
@@ -0,0 +1,11 @@
+EXT. INDENTATION TEST
+
+ Four spaces
+
+ Three spaces
+
+ Two spaces
+
+ One space
+
+No spaces
diff --git a/tests/files/indentation.fountain.fdx b/tests/files/indentation.fountain.fdx
new file mode 100644
index 0000000..958417f
--- /dev/null
+++ b/tests/files/indentation.fountain.fdx
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<FinalDraft DocumentType="Script" Template="No" Version="1">
+
+ <Content>
+ <Paragraph Type="Scene Heading">
+ <Text>EXT. INDENTATION TEST</Text>
+ </Paragraph>
+ <Paragraph Type="Action">
+ <Text> Four spaces</Text>
+ </Paragraph>
+ <Paragraph Type="Action">
+ <Text> Three spaces</Text>
+ </Paragraph>
+ <Paragraph Type="Action">
+ <Text> Two spaces</Text>
+ </Paragraph>
+ <Paragraph Type="Action">
+ <Text> One space</Text>
+ </Paragraph>
+ <Paragraph Type="Action">
+ <Text>No spaces</Text>
+ </Paragraph>
+ </Content>
+</FinalDraft>
diff --git a/tests/files/indentation.fountain.html b/tests/files/indentation.fountain.html
new file mode 100644
index 0000000..491b515
--- /dev/null
+++ b/tests/files/indentation.fountain.html
@@ -0,0 +1,6 @@
+<h6>EXT. INDENTATION TEST</h6>
+<div class="action"><p>&nbsp;&nbsp;&nbsp; Four spaces</p></div>
+<div class="action"><p>&nbsp;&nbsp; Three spaces</p></div>
+<div class="action"><p>&nbsp; Two spaces</p></div>
+<div class="action"><p>&nbsp;One space</p></div>
+<div class="action"><p>No spaces</p></div>