diff options
| author | coqbot-app[bot] | 2021-04-10 17:42:13 +0000 |
|---|---|---|
| committer | GitHub | 2021-04-10 17:42:13 +0000 |
| commit | 19e991811dc30bd2392cc969667887a159f355e5 (patch) | |
| tree | 16ba187adcaa3fceeb38b5f60a9c59b76424eb72 | |
| parent | 1947e54a2331dbbb8cd0f46b40bbb1524a67df54 (diff) | |
| parent | 8220bb14e01b03ed727e8bb8c4f9ab70af3fd9f5 (diff) | |
Merge PR #13860: [coqrst] Show "Error:"/"Warning:" with white type (on red/orange background)
Reviewed-by: Zimmi48
Ack-by: cpitclaudel
| -rw-r--r-- | doc/sphinx/_static/ansi.css | 2 | ||||
| -rw-r--r-- | doc/tools/coqrst/repl/ansicolors.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/sphinx/_static/ansi.css b/doc/sphinx/_static/ansi.css index 2a618f68d2..a4850a738b 100644 --- a/doc/sphinx/_static/ansi.css +++ b/doc/sphinx/_static/ansi.css @@ -69,7 +69,7 @@ } .ansi-fg-white { - color: #2e3436; + color: #ffffff; } .ansi-fg-light-black { diff --git a/doc/tools/coqrst/repl/ansicolors.py b/doc/tools/coqrst/repl/ansicolors.py index 9e23be2409..6700c20b1a 100644 --- a/doc/tools/coqrst/repl/ansicolors.py +++ b/doc/tools/coqrst/repl/ansicolors.py @@ -91,7 +91,10 @@ def parse_ansi(code): leading ‘^[[’ or the final ‘m’ """ classes = [] - parse_style([int(c) for c in code.split(';')], 0, classes) + if code == "37": + pass # ignore white fg + else: + parse_style([int(c) for c in code.split(';')], 0, classes) return ["ansi-" + cls for cls in classes] if __name__ == '__main__': |
