aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2012-02-07 23:45:28 +0100
committerMartin Vilcans <martin@librador.com>2012-02-07 23:45:28 +0100
commitb2dbd04a50a159ba18caa152ae98267a16f89c28 (patch)
tree291263e617a4d2dbd7b3369fd8d1e5f55a441e97
parent4ef66239b98307dffea04481812cdfa126819c07 (diff)
downloadscreenplain-b2dbd04a50a159ba18caa152ae98267a16f89c28.tar.gz
Removed unused screenplain.format module etc.
-rw-r--r--screenplain/format.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/screenplain/format.py b/screenplain/format.py
deleted file mode 100644
index 5d698f6..0000000
--- a/screenplain/format.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (c) 2011 Martin Vilcans
-# Licensed under the MIT license:
-# http://www.opensource.org/licenses/mit-license.php
-
-# Numbers from http://www.emacswiki.org/emacs/ScreenPlay
-# According to http://johnaugust.com/2004/how-many-lines-per-page
-lines_per_page = 56
-
-
-def get_pages(paragraphs):
- """Generates one list of lines per page."""
- lines_on_page = []
- for paragraph in paragraphs:
- top_margin = paragraph.top_margin if lines_on_page else 0
- para_lines = list(paragraph.format())
-
- if len(lines_on_page) + top_margin + len(para_lines) > lines_per_page:
- yield lines_on_page
- lines_on_page = []
- else:
- lines_on_page += [''] * top_margin
- lines_on_page += para_lines
- yield lines_on_page