X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8bd5af0d1af393ad09e7fc162dc6ad82548bfbe1..c5aff19e408ee9b1f9f8561549de7473a134e47f:/lib/markupstring.py?ds=inline diff --git a/lib/markupstring.py b/lib/markupstring.py index f31e148cd..d3ee955b2 100644 --- a/lib/markupstring.py +++ b/lib/markupstring.py @@ -92,3 +92,6 @@ class MarkupString (unicode): for et in ends[e]: outbuf+= et return MarkupString(outbuf) + def __len__(self): + return len(self.raw) +