mirror of
https://github.com/cheat/cheat.git
synced 2025-09-04 11:08:29 +02:00
indent block fail :x, no more triple output
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user