From 4c5bd8efa592e8778f9fa223453d59f54b137c0e Mon Sep 17 00:00:00 2001 From: 0rax Date: Thu, 7 Nov 2013 00:41:36 +0100 Subject: [PATCH] indent block fail :x, no more triple output --- cheat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cheat b/cheat index 0e66ebc..b87179e 100755 --- a/cheat +++ b/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