summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-07-16 22:22:20 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-07-16 22:22:20 +0100
commit77ae345dc791fb115e0c4beffc1f8bc6beb92883 (patch)
treea2abdf9395cb293c222503ceca62ce87c24624a8 /extra
parentc80a0d3c3bee504c611b563e87987cabc509489c (diff)
replace 'hidden' values in tags-section converter
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)