mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
indent block fail :x, no more triple output
This commit is contained in:
parent
69428a7279
commit
4c5bd8efa5
5
cheat
5
cheat
@ -195,6 +195,7 @@ class CheatSheets(object):
|
||||
def search(self, term):
|
||||
"""Search for a term in sheetcheats"""
|
||||
for cheat in self.sheets.keys():
|
||||
print cheat
|
||||
output = ''
|
||||
for block in self.__parse_cheat_command_block(cheat):
|
||||
if term in block:
|
||||
@ -202,8 +203,8 @@ class CheatSheets(object):
|
||||
output = cheat + ":\n"
|
||||
output += ''.join([" " + line + '\n' for line
|
||||
in block.split('\n')])
|
||||
if output:
|
||||
print output,
|
||||
if output:
|
||||
print output,
|
||||
|
||||
|
||||
# Custom action for argparse
|
||||
|
Loading…
Reference in New Issue
Block a user