Sha256: 283e27e1fe1bd3d17e1c887e1ef9a2a18dd4a94bd661aace67c71b2487a67062

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 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

1 entries across 1 versions & 1 rubygems

Version Path
RbST-0.6.5 lib/rst2parts/rst2latex.py