Skip to content

Commit

Permalink
Fix up newline behaviour in hg interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Jul 3, 2011
1 parent 1ff1851 commit b2530c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trychooser
Expand Up @@ -188,7 +188,7 @@ def run_algorithm(state):
string += node.action
node = node.next
elif isinstance(node, N):
state.say(node.prompt + '?\n')
state.say(node.prompt + '?')
input = state.prompt()
if input in 'Yy':
string += node.action
Expand Down Expand Up @@ -255,7 +255,7 @@ if __name__ == '__main__':

# print isn't a function
def say(self, string):
print '\n' + string,
print string

def prompt(self):
return raw_input('[Ynh?]\n')
Expand All @@ -282,7 +282,7 @@ else:
self.repo = repo

def say(self, string):
self.ui.write(string)
self.ui.write(string + '\n')
self.ui.flush()

def prompt(self):
Expand Down

0 comments on commit b2530c2

Please sign in to comment.