Commit 0b75ddeb authored by di68kap's avatar di68kap

- Fehlerbehebungen

parent 7fd36591
......@@ -3,7 +3,7 @@ LEMMA 1. curia
GRAMMATIK
subst.; indecl. f.
subst. I; indecl. f.
SCHREIBWEISE
script.:
......
......@@ -2229,7 +2229,9 @@ class AusgabeTransformation(TreeProcessor):
if klasse:
node.attr['title'] = "Klasse: " + klasse
node.attr['wortart'] = node.content
if node.has_attr('verdichtung'):
if node.has_attr('verdichtung') \
and not (nd for nd in node.select_context_if(lambda n: n.has_attr('err'),
include_root=True)):
if any(nd.tag_name == "SubLemmaPosition" for nd in reversed(self.context[:-1])):
node.result = node.attr['verdichtung']
elif not node.pick('wa_ergänzung'):
......@@ -2686,6 +2688,9 @@ class HTMLTransformation(TreeProcessor):
add_errors_to_titleattr(node, errors)
else:
node.attr['title'] = "Aufgrund eines Fehlers überprungener Abschnitt"
elif node.has_attr('err'):
node.result = '☠'
node.title = node['err']
return node
def on_Sperrung(self, node):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment