[MLIR] Remove generated spaces at eof for generate-test-checks.py.
authorTim Shen <timshen@google.com>
Tue, 16 Jun 2020 18:28:36 +0000 (11:28 -0700)
committerTim Shen <timshen@google.com>
Tue, 16 Jun 2020 18:28:36 +0000 (11:28 -0700)
mlir/utils/generate-test-checks.py

index e08f64e..4b590b2 100755 (executable)
@@ -90,7 +90,7 @@ def process_line(line_chunks, variable_namer):
     # Append the non named group.
     output_line += chunk[len(ssa_name):]
 
-  return output_line + '\n'
+  return output_line.rstrip() + '\n'
 
 
 def process_source_lines(source_lines, note, args):