Mercurial > libervia-desktop-kivy
comparison cagou/core/simple_xhtml.py @ 299:86b1cd8121dd
core (simple_xhtml): activated underline and line-through which are now available
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 28 Jun 2019 12:30:16 +0200 |
parents | 44752e8031f8 |
children | 772c170b47a9 |
comparison
equal
deleted
inserted
replaced
298:318a46e78ff6 | 299:86b1cd8121dd |
---|---|
493 def css_color(self, elem, value): | 493 def css_color(self, elem, value): |
494 self._addStyle(u"color", css_color.parse(value)) | 494 self._addStyle(u"color", css_color.parse(value)) |
495 | 495 |
496 def css_text_decoration(self, elem, value): | 496 def css_text_decoration(self, elem, value): |
497 if value == u'underline': | 497 if value == u'underline': |
498 log.warning(u"{} not handled yet, it needs Kivy 1.9.2 to be released".format(value)) | 498 self._addStyle('u') |
499 # FIXME: activate when 1.9.2 is out | |
500 # self._addStyle('u') | |
501 elif value == u'line-through': | 499 elif value == u'line-through': |
502 log.warning(u"{} not handled yet, it needs Kivy 1.9.2 to be released".format(value)) | 500 self._addStyle('s') |
503 # FIXME: activate when 1.9.2 is out | |
504 # self._addStyle('s') | |
505 else: | 501 else: |
506 log.warning(u"unhandled text decoration: {}".format(value)) | 502 log.warning(u"unhandled text decoration: {}".format(value)) |