summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Slenders <jonathan@slenders.be>2018-05-22 20:53:58 +0200
committerJonathan Slenders <jonathan@slenders.be>2018-05-22 20:53:58 +0200
commit652bfb3f70e38b6e20bf44353a059d4ff00ba774 (patch)
tree51f42d37ea6900827a48afdc8f63d672eb89fb90
parent99edf60df9f7c0e0da8f36ec5cdbc2029efe848b (diff)
Check 'color' attribute of <style> tag in HTML.
-rw-r--r--prompt_toolkit/formatted_text/html.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/prompt_toolkit/formatted_text/html.py b/prompt_toolkit/formatted_text/html.py
index 759444d3..579e481d 100644
--- a/prompt_toolkit/formatted_text/html.py
+++ b/prompt_toolkit/formatted_text/html.py
@@ -60,6 +60,7 @@ class HTML(object):
for k, v in child.attributes.items():
if k == 'fg': fg = v
if k == 'bg': bg = v
+ if k == 'color': fg = v # Alias for 'fg'.
# Check for spaces in attributes. This would result in
# invalid style strings otherwise.