Skip to content

Commit 76ad51f

Browse files
committed
update keywords.txt
1 parent 44bc44a commit 76ad51f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extras/keywords.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def read_keywords(file_path, verbose, force):
158158

159159
def write_keywords(key_dict, file_path, verbose, soft):
160160
max_len = 0
161-
161+
'''
162162
# Get the longest item
163163
for k in key_dict.keys():
164164
for i in key_dict[k]:
@@ -168,21 +168,21 @@ def write_keywords(key_dict, file_path, verbose, soft):
168168
# Extend it
169169
while (max_len % 4 != 0): max_len += 1
170170
max_len += distance
171-
171+
'''
172172
output = template_KEYWORD1
173173
for n in key_dict['KEYWORD1']:
174174
pos = max_len - len(n)
175-
output += '{}{}{}\n'.format(n, ' ' * pos, 'KEYWORD1')
175+
output += '{}\t{}\n'.format(n, 'KEYWORD1')
176176

177177
output += '\n\n' + template_KEYWORD2
178178
for n in key_dict['KEYWORD2']:
179179
pos = max_len - len(n)
180-
output += '{}{}{}\n'.format(n, ' ' * pos, 'KEYWORD2')
180+
output += '{}\t{}\n'.format(n, 'KEYWORD2')
181181

182182
output += '\n\n' + template_LITERAL1
183183
for n in key_dict['LITERAL1']:
184184
pos = max_len - len(n)
185-
output += '{}{}{}\n'.format(n, ' ' * pos, 'LITERAL1')
185+
output += '{}\t{}\n'.format(n, 'LITERAL1')
186186

187187
if verbose: print('{} printed/wrote'.format(file_path))
188188
if soft: print(output.strip())

0 commit comments

Comments
 (0)