X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/5c55be51e46b296d368b86375f2f4b90ea46c00b..db772f02e1800391c1699002e16729ab8872675e:/scripts/book2txt?ds=sidebyside diff --git a/scripts/book2txt b/scripts/book2txt index e584579..1b4c0ef 100755 --- a/scripts/book2txt +++ b/scripts/book2txt @@ -5,6 +5,7 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from librarian.book2anything import Book2Anything, Option +from librarian.parser import WLDocument class Book2Txt(Book2Anything): @@ -21,6 +22,7 @@ class Book2Txt(Book2Anything): Option('-w', '--wrap', action='store', type='int', dest='wrapping', default=0, help='set line wrap column') ] + transform = WLDocument.as_text if __name__ == '__main__':