summaryrefslogtreecommitdiff
path: root/board-to-uboot.py
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-03-25 11:51:56 -0600
committerStephen Warren <swarren@nvidia.com>2015-03-25 12:02:51 -0600
commitf69acc27558b8104cf17baa0799cb4447d6d6df8 (patch)
tree6bfb32175c6ef8a0092ee6426ac26aa2816dacd6 /board-to-uboot.py
parent64444eff656e0efc3a5cbce1bd853a79727e4d16 (diff)
downloadtegra-pinmux-scripts-f69acc27558b8104cf17baa0799cb4447d6d6df8.tar.gz
Fix some TAB alignment issues
append_aligned_tabs_indent_with_tabs() was converting TABs to spaces to simplify calculation of line length, assuming the only TABs were at the beginning of the line, and hence were all exactly 8 characters wide. In some scenarios, TABs were also embedded within the line, which caused incorrect calculations. Solve this by explicitly evaluating TAB widths character by character, rather than taking shortcuts. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'board-to-uboot.py')
-rwxr-xr-xboard-to-uboot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/board-to-uboot.py b/board-to-uboot.py
index f337b63..8c5f11f 100755
--- a/board-to-uboot.py
+++ b/board-to-uboot.py
@@ -117,7 +117,7 @@ if board.soc.soc_pins_have_ior:
.ioreset = PMUX_PIN_IO_RESET_DEFAULT,
'''
-s = append_aligned_tabs_indent_with_tabs(s)
+s = append_aligned_tabs_indent_with_tabs(s, 0)
print(s)
print('''\