mirror of https://github.com/cheat/cheat.git
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):
|
def search(self, term):
|
||||||
"""Search for a term in sheetcheats"""
|
"""Search for a term in sheetcheats"""
|
||||||
for cheat in self.sheets.keys():
|
for cheat in self.sheets.keys():
|
||||||
|
print cheat
|
||||||
output = ''
|
output = ''
|
||||||
for block in self.__parse_cheat_command_block(cheat):
|
for block in self.__parse_cheat_command_block(cheat):
|
||||||
if term in block:
|
if term in block:
|
||||||
|
@ -202,8 +203,8 @@ class CheatSheets(object):
|
||||||
output = cheat + ":\n"
|
output = cheat + ":\n"
|
||||||
output += ''.join([" " + line + '\n' for line
|
output += ''.join([" " + line + '\n' for line
|
||||||
in block.split('\n')])
|
in block.split('\n')])
|
||||||
if output:
|
if output:
|
||||||
print output,
|
print output,
|
||||||
|
|
||||||
|
|
||||||
# Custom action for argparse
|
# Custom action for argparse
|
||||||
|
|
Loading…
Reference in New Issue