From 6f3e8406836a0fe321393ab670a55a30d8d33876 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sun, 3 Jul 2022 16:14:59 -0400 Subject: [PATCH] fix style --- bash_tools/dict.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bash_tools/dict.py b/bash_tools/dict.py index 23e9545..6ae7e71 100644 --- a/bash_tools/dict.py +++ b/bash_tools/dict.py @@ -54,14 +54,14 @@ def rich_paring(data): if len(ponetic.items()) > 0: for _, v in ponetic.items(): - v = v.replace('[', '\[').replace(']', ']') - console.print(v, style="yellow") + #v = v.replace('[', '\[').replace(']', ']') + console.print(Text(v, style="yellow")) print() if len(defs) > 0: for k in defs: - console.print(k, style="green") - console.print(defs[k], style="cyan") + console.print(Text(k, style="green")) + console.print(Text(defs[k], style="cyan")) print() for s in samples[:2]: