summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rwxr-xr-xextra/tagsections_convert.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/tagsections_convert.py b/extra/tagsections_convert.py
index 4dbf4554..82ccd33e 100755
--- a/extra/tagsections_convert.py
+++ b/extra/tagsections_convert.py
@@ -47,12 +47,14 @@ if __name__ == "__main__":
for tag in cfg['tags'].sections:
sec = cfg['tags'][tag]
att = [''] * 6
+
if 'fg' in sec:
fg = sec['fg']
if not is_256(fg):
att[2] = fg
att[4] = fg
del(sec['fg'])
+
if 'bg' in sec:
bg = sec['bg']
if not is_256(bg):
@@ -60,4 +62,7 @@ if __name__ == "__main__":
att[5] = bg
del(sec['bg'])
sec['normal'] = att
+
+ if sec['hidden']:
+ sec['translated'] = ''
cfg.write(out)