]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Colours visible on white background 3.2
authorSergey Matveev <stargrave@stargrave.org>
Fri, 9 Mar 2018 09:51:29 +0000 (12:51 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 9 Mar 2018 09:51:38 +0000 (12:51 +0300)
VERSION
doc/news.rst
pyderasn.py

diff --git a/VERSION b/VERSION
index 8c50098d8aed57b02fd10f40a670a7c673b7c5a5..a3ec5a4bd3d7209b4a687a77cad49b945339994b 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.1
+3.2
index dd3a14328d62d28518eb521a402965af5f6697eb..b9de7c1d647873507dff82eb91e3eaa0e9f12b8b 100644 (file)
@@ -1,6 +1,12 @@
 News
 ====
 
+.. _release3.2:
+
+3.2
+---
+* Slightly corrected colours, now visible on white background
+
 .. _release3.1:
 
 3.1
index 386f234ae4b7adf62cd2ed446ab84f71c14ce57f..bf0e4857a63d40a0940a01983f1f8b4a4b5eea36 100755 (executable)
@@ -1131,9 +1131,9 @@ def pp_console_row(
             ):
                 cols.append(_colorize("%s:" % oids[value], "green", with_colours))
             else:
-                cols.append(_colorize("%s:" % value, "white", with_colours))
+                cols.append(_colorize("%s:" % value, "white", with_colours, ("reverse",)))
         else:
-            cols.append(_colorize("%s:" % ent, "yellow", with_colours))
+            cols.append(_colorize("%s:" % ent, "yellow", with_colours, ("reverse",)))
     if pp.expl is not None:
         klass, _, num = pp.expl
         col = "[%s%d] EXPLICIT" % (TagClassReprs[klass], num)
@@ -1147,7 +1147,7 @@ def pp_console_row(
     cols.append(_colorize(pp.asn1_type_name, "cyan", with_colours))
     if pp.value is not None:
         value = pp.value
-        cols.append(_colorize(value, "white", with_colours))
+        cols.append(_colorize(value, "white", with_colours, ("reverse",)))
         if (
                 oids is not None and
                 pp.asn1_type_name == ObjectIdentifier.asn1_type_name and