Revision: 76a4a21055d4
Author:   Robot Framework Developers <[email protected]>
Date:     Tue Jan  3 05:09:21 2012
Log:      TxtWriter: align variable names to same width as setting names
http://code.google.com/p/robotframework/source/detail?r=76a4a21055d4

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

=======================================
--- /src/robot/writer/formatters.py     Tue Jan  3 04:46:29 2012
+++ /src/robot/writer/formatters.py     Tue Jan  3 05:09:21 2012
@@ -81,7 +81,7 @@
         self._cols = cols

     def _variable_table_formatter(self):
-        return RowSplittingFormatter(self._cols)
+        return SettingTableAligner(self._cols, self._SETTING_NAME_WIDTH)

     def _setting_table_formatter(self):
         return SettingTableAligner(self._cols, self._SETTING_NAME_WIDTH)
=======================================
--- /utest/writer/golden.py     Thu Dec 22 01:27:59 2011
+++ /utest/writer/golden.py     Tue Jan  3 05:09:21 2012
@@ -5,8 +5,8 @@
 Resource          MyResource args that are part of the name

 *** Variables ***
-MyVar    val1    val2    val3    val4    val5    val6    val6
-...    val7    val8    val9    # var comment
+MyVar             val1    val2    val3    val4    val5    val6    val6
+...               val7    val8    val9    # var comment
 %s
 *** Keywords ***
 My Keyword
@@ -59,8 +59,8 @@
 | Resource       | MyResource args that are part of the name |

 | *** Variables *** |
-| MyVar | val1 | val2 | val3 | val4 | val5 | val6 | val6 |
-| ... | val7 | val8 | val9 | # var comment |
+| MyVar          | val1 | val2 | val3 | val4 | val5 | val6 | val6 |
+| ...            | val7 | val8 | val9 | # var comment |
 %s
 | *** Keywords *** |
 | My Keyword |

Reply via email to