summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-05-07 12:03:32 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-05-07 12:03:32 -0400
commit732e22ecc55d02b49b6107b4a5ca8d53485e465b (patch)
tree2e61002671311e9c973b3d8ea44949a29ddbc55b /devtools
parent16a2b32f79b56debefbb855d9129a553a6a1fe2f (diff)
downloadgpsd-732e22ecc55d02b49b6107b4a5ca8d53485e465b.tar.gz
A minor improvement in a code generator.
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/tablegen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/devtools/tablegen.py b/devtools/tablegen.py
index e5320432..f2cdab37 100755
--- a/devtools/tablegen.py
+++ b/devtools/tablegen.py
@@ -334,6 +334,10 @@ if __name__ == '__main__':
elif line.startswith("|="):
keep = False
if keep:
+ if line[0] == '|':
+ fields = line.split("|")
+ fields[1] = " " * len(fields[1])
+ line = "|".join(fields)
table.append(line)
table = table[2:]
widths = []