Skip to content

Commit

Permalink
also perform text validation on string elements #15
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Aug 19, 2020
1 parent 9f85b46 commit ae4b770
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion folia/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5338,7 +5338,10 @@ def sort(self):

class String(AbstractElement, AllowInlineAnnotation):
"""String"""
pass

def postappend(self):
if self.doc and self.doc.textvalidation:
self.doc.textvalidationerrors += int(not self.textvalidation())

class AbstractCorrectionChild(AbstractElement):
def generate_id(self, cls):
Expand Down

0 comments on commit ae4b770

Please sign in to comment.