X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2903250a90904488ff3de04ecbbf2b6b5c421839..2fa2f481732ddf6f7dcd98f549c81c5e859a89a1:/lib/librarian/bin/book2txt.py diff --git a/lib/librarian/bin/book2txt.py b/lib/librarian/bin/book2txt.py index 86f6f1274..84a8f4084 100755 --- a/lib/librarian/bin/book2txt.py +++ b/lib/librarian/bin/book2txt.py @@ -11,10 +11,10 @@ REGEXES = [ (r']*>(.|\n)*?', ''), ('<(begin|end)\\sid=[\'|"][b|e]\\d+[\'|"]\\s/>', ''), (r'(()|())', ''), - (r'[^<]*', ''), - (r'(.|\n)*?

', ''), + (r'(.|\n)*?', ''), + (r'(.|\n)*?', ''), (r'<[^>]+>', ''), - (r'/$', ''), + (r'/\n', '\n'), (r'---', u'—'), (r'--', u'-'), (r',,', u'„'),