Sha256: ed72c1c9261c1d2676578b4210845f1712dab3d35d8323d308dce162c6791417

Contents?: true

Size: 634 Bytes

Versions: 6

Compression:

Stored size: 634 Bytes

Contents

#!/usr/bin/env python

try:
    import locale
    locale.setlocale(locale.LC_ALL, '')
except:
    pass

import codecs
import sys
from transform import transform
from docutils.writers.latex2e import Writer

def main():
    return transform(writer=Writer(), part='whole')

if __name__ == '__main__':
    # Python 2 wants an encoded string for unicode, while Python 3 views an
    # encoded string as bytes and asks for a string. Solution via:
    # http://stackoverflow.com/a/24104423
    if sys.version_info[0] < 3:
        UTF8Writer = codecs.getwriter('utf8')
        sys.stdout = UTF8Writer(sys.stdout)
    sys.stdout.write(main())

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
RbST-0.6.4 lib/rst2parts/rst2latex.py
RbST-0.6.3 lib/rst2parts/rst2latex.py
RbST-0.6.2 lib/rst2parts/rst2latex.py
RbST-0.6.1 lib/rst2parts/rst2latex.py
RbST-0.6.0 lib/rst2parts/rst2latex.py
RbST-0.5.1 lib/rst2parts/rst2latex.py