Do not output empty algorithm.

This commit is contained in:
Andris Raugulis 2016-10-06 16:22:09 +03:00
parent aec576b57a
commit 705bedd608
1 changed files with 2 additions and 0 deletions

View File

@ -1337,6 +1337,8 @@ def output_algorithm(alg_db, alg_type, alg_name, alg_max_len=0):
alg_max_len = len(alg_name) alg_max_len = len(alg_name)
padding = '' if out.batch else ' ' * (alg_max_len - len(alg_name)) padding = '' if out.batch else ' ' * (alg_max_len - len(alg_name))
texts = [] texts = []
if len(alg_name.strip()) == 0:
return
if alg_name in alg_db[alg_type]: if alg_name in alg_db[alg_type]:
alg_desc = alg_db[alg_type][alg_name] alg_desc = alg_db[alg_type][alg_name]
ldesc = len(alg_desc) ldesc = len(alg_desc)