colors: Handle the <p> tag.
This commit is contained in:
parent
8597dbbf52
commit
94330922eb
1 changed files with 6 additions and 0 deletions
|
@ -389,6 +389,12 @@ class MatrixHtmlParser(HTMLParser):
|
|||
self._toggle_attribute("strikethrough")
|
||||
elif tag == "blockquote":
|
||||
self._toggle_attribute("quote")
|
||||
elif tag == "p":
|
||||
if self.text:
|
||||
self.add_substring(self.text, self.attributes.copy())
|
||||
self.text = "\n"
|
||||
self.add_substring(self.text, DEFAULT_ATRIBUTES.copy())
|
||||
self.text = ""
|
||||
elif tag == "font":
|
||||
if self.text:
|
||||
self.add_substring(self.text, self.attributes.copy())
|
||||
|
|
Loading…
Add table
Reference in a new issue