X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/f0c23b2e3a1a1d7f37d9f00118632d116b3c8582..e868b7e6511dfbb89e5a9dd69bbb7ef13c42620a:/scripts/book2txt?ds=sidebyside diff --git a/scripts/book2txt b/scripts/book2txt index d5e18c6..f77e512 100755 --- a/scripts/book2txt +++ b/scripts/book2txt @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # This file is part of Librarian, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # import os import optparse @@ -24,9 +24,9 @@ if __name__ == '__main__': help='set line wrap column') parser.add_option('-i', '--ignore-dublin-core', action='store_false', dest='parse_dublincore', default=True, help='don\'t try to parse dublin core metadata') - + options, input_filenames = parser.parse_args() - + if len(input_filenames) < 1: parser.print_help() exit(1) @@ -35,7 +35,7 @@ if __name__ == '__main__': for input_filename in input_filenames: if options.verbose: print input_filename - + output_filename = os.path.splitext(input_filename)[0] + '.txt' try: output_file = open(output_filename, 'w')