X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/5c55be51e46b296d368b86375f2f4b90ea46c00b..e741f082e5b4122a5fa0f2c992f3519e573a8c7b:/scripts/book2txt 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__':