aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update readme for Python 3 #54Martin Vilcans2020-02-132-6/+7
|
* Remove Python 2.7 from CI #54Martin Vilcans2020-02-131-1/+0
|
* Merge branch 'remove-py2'Martin Vilcans2020-02-129-58/+24
|\
| * Removing Python 2 support - no need for six #54Martin Vilcans2020-02-127-9/+4
| |
| * Remove Python 2 support for doctests #54Martin Vilcans2020-02-123-49/+20
|/
* Merge pull request #56 from jstasiak/python38-compatMartin Vilcans2020-02-122-4/+8
|\ | | | | Fix Python 3/3.8 compatibility
| * Fix "TypeError: write() argument must be str, not bytes" on Python 3Jakub Stasiak2020-02-081-2/+2
| | | | | | | | | | | | | | | | | | | | This used to happen when writing to stdout. On Python 3 stdout is an instance of TextIOWrapper which is a text-based interface. It wraps a bytes-based writer though which is accessible through the buffer attribute, so let's use that to either write to it directly or to get an encoding writer. Fixes https://github.com/vilcans/screenplain/issues/53.
| * Fix "AttributeError: module 'cgi' has no attribute 'escape'" on Python 3.8Jakub Stasiak2020-02-071-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Full error: % screenplain Big-Fish.fountain Big-Fish.html Traceback (most recent call last): File "/Users/user/.ve38/bin/screenplain", line 6, in <module> main(sys.argv[1:]) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/main.py", line 125, in main convert( File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 183, in convert convert_full( File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 210, in convert_full convert_bare(screenplay, out) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 225, in convert_bare formatter.convert(screenplay) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 99, in convert format_function(para) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 153, in format_action self.out.write(to_html(line)) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/export/html.py", line 60, in to_html html = text.to_html() File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 62, in to_html html = ''.join(seg.to_html() for seg in self.segments) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 62, in <genexpr> html = ''.join(seg.to_html() for seg in self.segments) File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 136, in to_html _escape(self.text), File "/Users/user/.ve38/lib/python3.8/site-packages/screenplain/richstring.py", line 17, in _escape encoded = cgi.escape(s).encode('ascii', 'xmlcharrefreplace') AttributeError: module 'cgi' has no attribute 'escape' cgi.escape() is gone in Python 3.8, html.escape() should be used instead. Since html.escape() defaults to quote=True, we need to explicitly disable escaping quotation marks to keep doing the same thing. A question arises though – should quotation marks be actually kept verbatim here or was it unintentional?
* | Replace pep8 with pycodestyle, get rid of warningsMartin Vilcans2020-02-125-4/+7
| | | | | | | | pep8 recommended that change
* | Merge pull request #57 from jstasiak/ci-modern-python3-versionsMartin Vilcans2020-02-121-1/+4
|\ \ | |/ |/| Test with currently supported Python 3 versions
| * Test with currently supported Python 3 versionsJakub Stasiak2020-02-081-1/+4
|/
* Follow package recommendations0.8.0Martin Vilcans2019-02-213-1/+8
| | | | | From https://github.com/pypa/sampleproject
* Rename license file to comply with recommendationMartin Vilcans2019-02-211-0/+0
| | | | | Recommendations: https://packaging.python.org/guides/distributing-packages-using-setuptools/
* Add classifiers, URLs, license to setup.pyMartin Vilcans2019-02-211-1/+12
|
* Bump version and copyrightMartin Vilcans2019-02-212-2/+2
|
* Add install_requires six for universal Python supportMartin Vilcans2019-02-211-0/+3
|
* Do not create empty paragraph if Note is a full paragraphMartin Vilcans2019-02-213-0/+20
|
* Fountain treats a single space as an empty lineMartin Vilcans2019-02-211-1/+1
|
* Add supports for notesMartin Vilcans2019-02-213-1/+27
| | | | Fixes #37
* Merge pull request #46 from jpyams/python3Martin Vilcans2019-02-2111-15/+72
|\ | | | | Add Python 3 support
| * Python 3 no longer requires separate requirementsJohn Peter Yamauchi2019-02-191-4/+0
| | | | | | | | No pun intended
| * Fixed merge issueJohn Peter Yamauchi2019-02-191-8/+4
| |
| * Run Python 3 test script when running Py3John Peter Yamauchi2019-02-191-2/+7
| |
| * Merge branch 'master' into python3John Peter Yamauchi2019-02-1921-107/+690
| |\ | |/ |/|
* | PDF output: No space between lines in multi-line Action paragraphsMartin Vilcans2017-02-231-2/+4
| |
* | Get rid of literal 12 for font size/spacingMartin Vilcans2017-02-231-13/+21
| |
* | Get rid of confusing PDF frame width calculationMartin Vilcans2017-02-231-2/+3
| |
* | Show multiple spaces in a row as is in HTML & PDFMartin Vilcans2016-04-144-3/+48
| | | | | | | | | | | | | | Not sure if FDX output should use &nbsp; Let's keep using spaces for now. Closes #30
* | Replace two spaces with &nbsp; in PDF output tooMartin Vilcans2016-04-132-5/+7
| |
* | Support writing PDF to stdoutMartin Vilcans2015-12-011-24/+32
| |
* | Bump version to 0.7.00.7.0Martin Vilcans2015-12-011-1/+1
| |
* | Possible to specify which CSS file to useMartin Vilcans2015-11-262-6/+20
| | | | | | | | Closes #24
* | Test that alphanumeric character names workMartin Vilcans2015-11-171-0/+7
| |
* | Support non-alphanumeric character names with "@"Martin Vilcans2015-11-172-3/+19
| | | | | | | | Fixes #22
* | Restore template_constructor argument in to_pdfMartin Vilcans2015-10-122-3/+6
| |
* | Merge pull request #20 from charneykaye/pdf-scene-headings-boldMartin Vilcans2015-10-122-3/+22
|\ \ | | | | | | PDF exports Scene Headings as Bold and Underlined; fixes #14
| * | PDF exports Scene Headings as Bold and Underlined; fixes #14Charney Kaye2015-10-082-3/+22
|/ /
* | Merge pull request #18 from michaelx386/masterMartin Vilcans2015-09-184-1/+68
|\ \ | | | | | | Parse files with BOM present; fixes #5
| * | Parse files with BOM present; fixes #5michaelx3862015-09-184-1/+68
|/ /
* | Add test for dual dialogue in FDX outputMartin Vilcans2015-07-231-0/+21
| |
* | Bumped version to 0.6.00.6.0Martin Vilcans2015-04-031-1/+1
| |
* | Use `pip install -e .` in development instructionsMartin Vilcans2015-04-032-0/+10
| |
* | Ignore PEP8 error about imports not at top of fileMartin Vilcans2015-04-031-1/+1
| | | | | | | | | | This appeared after pep8 version 1.6.0. See jcrocholl/pep8#264
* | Merge pull request #12 from michaelx386/right-align-transitionsMartin Vilcans2015-04-031-1/+2
|\ \ | | | | | | Right align transitions in PDF output
| * | Right align transitions in PDF outputmichaelx3862015-04-031-1/+2
|/ /
* | Bump to version 0.5.10.5.1Martin Vilcans2014-11-261-1/+1
| |
* | Slight layout changes to cover pageMartin Vilcans2014-11-261-2/+2
| |
* | Bump version to 0.5.00.5.0Martin Vilcans2014-11-131-1/+1
| |
* | Don't count title page when numbering pagesMartin Vilcans2014-11-121-1/+7
| |
* | Title page: 6 points of buffer to avoid blank pageMartin Vilcans2014-11-121-1/+2
| | | | | | | | Otherwise, for some input I got a blank second page.