diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-05-07 12:03:32 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-05-07 12:03:32 -0400 |
commit | 732e22ecc55d02b49b6107b4a5ca8d53485e465b (patch) | |
tree | 2e61002671311e9c973b3d8ea44949a29ddbc55b /devtools | |
parent | 16a2b32f79b56debefbb855d9129a553a6a1fe2f (diff) | |
download | gpsd-732e22ecc55d02b49b6107b4a5ca8d53485e465b.tar.gz |
A minor improvement in a code generator.
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/tablegen.py | 4 |
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 = [] |