html.extract_annotations: Allow multiple footnote qualifiers. Use only ones accepted...
[librarian.git] / scripts / normalize.py
old mode 100755 (executable)
new mode 100644 (file)
index b927269..6f6013f
@@ -1,5 +1,8 @@
-#!/usr/bin/env python
-
+# -*- 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.
+#
 from __future__ import with_statement
 
 import re
@@ -44,8 +47,8 @@ def wl_fix_dialog(context, data):
     if m is not None:
         return m.group(1)
     else:
-        return text   
-    
+        return text
+
 
 def filter_verse_ends(data):
     return data.replace('/\n', '<br />')
@@ -57,7 +60,7 @@ ns['fix-dialog-line'] = wl_fix_dialog
 def normalize_stylesheet():
     return etree.XSLT(etree.parse(os.path.join(os.path.dirname(librarian.__file__), 'xslt', 'normalize.xslt')))
 
-if __name__ == '__main__':    
+if __name__ == '__main__':
     tran = normalize_stylesheet()
     input = StringIO( f )
     doc = trans( etree.parse(input) )