From dfac35c77d973e7d6e06df0442b20c30619e0c72 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Sun, 6 Dec 2015 21:22:10 +0200 Subject: [PATCH] Improve line counting operation in WPT UI output --- tests/wpt/grouping_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/wpt/grouping_formatter.py b/tests/wpt/grouping_formatter.py index 6d4529c183a..43df1cd259b 100644 --- a/tests/wpt/grouping_formatter.py +++ b/tests/wpt/grouping_formatter.py @@ -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: