Improve line counting operation in WPT UI output

This commit is contained in:
Ori Avtalion 2015-12-06 21:22:10 +02:00
parent 359d812ed7
commit dfac35c77d

View file

@ -67,7 +67,7 @@ class GroupingFormatter(base.BaseFormatter):
if not self.interactive or not self.current_display:
return ""
return ((self.move_up + self.clear_eol) *
len(self.current_display.splitlines()))
self.current_display.count('\n'))
def generate_output(self, text=None, new_display=None):
if not self.interactive: