Revision: f574da443632
Author:   Janne Härkönen <[email protected]>
Date:     Mon Jan  9 00:30:06 2012
Log:      formatters: calculate col widhts only for test and keyword tables
http://code.google.com/p/robotframework/source/detail?r=f574da443632

Modified:
 /src/robot/writer/formatters.py

=======================================
--- /src/robot/writer/formatters.py     Thu Jan  5 07:23:09 2012
+++ /src/robot/writer/formatters.py     Mon Jan  9 00:30:06 2012
@@ -107,7 +107,7 @@
         return RowSplittingFormatter(self._cols)

     def _should_align_columns(self, table):
-        return bool(table.header[1:])
+ return table.type in ['test case', 'keyword'] and bool(table.header[1:])

     def _format_row(self, row):
         return self._escape(row)

Reply via email to