X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/5c55be51e46b296d368b86375f2f4b90ea46c00b..0081ccb8e51026b5af824b3c641648d23155f1e1:/scripts/book2txt?ds=inline 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__':