aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2012-02-07 22:38:22 +0100
committerMartin Vilcans <martin@librador.com>2012-02-07 22:40:14 +0100
commit4ef66239b98307dffea04481812cdfa126819c07 (patch)
tree0fd843b4241a93e43672930efbd065f15a52ef3a
parentb9d9e51bcf448cfa777012bd3ea0fe1b5ad0c2ed (diff)
downloadscreenplain-4ef66239b98307dffea04481812cdfa126819c07.tar.gz
Scene headings are now h6 in HTML output
-rw-r--r--screenplain/export/default.css2
-rw-r--r--screenplain/export/html.py2
-rw-r--r--tests/files/scene-numbers.spmd.html4
-rw-r--r--tests/files/simple.spmd.html2
4 files changed, 5 insertions, 5 deletions
diff --git a/screenplain/export/default.css b/screenplain/export/default.css
index d87162b..a0cbd4c 100644
--- a/screenplain/export/default.css
+++ b/screenplain/export/default.css
@@ -40,7 +40,7 @@ footer, header, hgroup, menu, nav, section {
}
/* Slug */
-.screenplay > h2 {
+.screenplay > h6 {
width:36.14em;
margin-top: 2em;
font-weight: bold;
diff --git a/screenplain/export/html.py b/screenplain/export/html.py
index 881233c..e003bb8 100644
--- a/screenplain/export/html.py
+++ b/screenplain/export/html.py
@@ -82,7 +82,7 @@ def _write_dialog_block(dialog, out):
def format_slug(slug, out):
num = slug.scene_number
- with tags(out, 'h2'):
+ with tags(out, 'h6'):
if num:
with tags(out, 'span class="scnuml"'):
out.write(to_html(slug.scene_number))
diff --git a/tests/files/scene-numbers.spmd.html b/tests/files/scene-numbers.spmd.html
index 8179c79..4b8d051 100644
--- a/tests/files/scene-numbers.spmd.html
+++ b/tests/files/scene-numbers.spmd.html
@@ -1,4 +1,4 @@
-<h2><span class="scnuml">1</span>INT. SOMEWHERE - DAY<span class="scnumr">1</span></h2>
+<h6><span class="scnuml">1</span>INT. SOMEWHERE - DAY<span class="scnumr">1</span></h6>
<div class="action"><p>Bla bla</p></div>
-<h2><span class="scnuml">2</span>INT. SOMEWHERE ELSE - NIGHT<span class="scnumr">2</span></h2>
+<h6><span class="scnuml">2</span>INT. SOMEWHERE ELSE - NIGHT<span class="scnumr">2</span></h6>
<div class="action"><p>Bla bla</p></div>
diff --git a/tests/files/simple.spmd.html b/tests/files/simple.spmd.html
index 42cc600..abcc55a 100644
--- a/tests/files/simple.spmd.html
+++ b/tests/files/simple.spmd.html
@@ -1,4 +1,4 @@
-<h2>EXT. SOMEWHERE - DAY</h2>
+<h6>EXT. SOMEWHERE - DAY</h6>
<div class="action"><p>GUY and GURL walks down the street.</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></div>