fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[librarian.git]
/
src
/
librarian
/
parser.py
diff --git
a/src/librarian/parser.py
b/src/librarian/parser.py
index
ca9691a
..
1f18dbd
100644
(file)
--- a/
src/librarian/parser.py
+++ b/
src/librarian/parser.py
@@
-209,7
+209,7
@@
class WLDocument:
for s in self.edoc.findall('//slowo_obce'):
if not s.text and len(s) == 1 and s[0].tag == 'slowo_obce':
continue
for s in self.edoc.findall('//slowo_obce'):
if not s.text and len(s) == 1 and s[0].tag == 'slowo_obce':
continue
- if re.match(r'^[\s\u0590-\u05ff]+$', s.text):
+ if re.match(r'^[\s\u0590-\u05ff]+$', s.text
or ''
):
s.attrib['protect'] = 'true'
def editors(self):
s.attrib['protect'] = 'true'
def editors(self):