mktables: Don't change table format with debugging info
authorKarl Williamson <public@khwilliamson.com>
Thu, 14 Nov 2013 04:56:31 +0000 (21:56 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 31 Dec 2013 15:27:19 +0000 (08:27 -0700)
commit97a8a595adfd7dda22e71e4edc67262f5dd11e64
treeb807be737480ecffa214ae48450484f6e28a97a6
parent3c88a801a324af30a4121a12295f2915f029fd4b
mktables: Don't change table format with debugging info

The -annotate option to mktables causes it to output extra information
(in the form of comments) to its generated tables to make them human
readable and useful for debugging.  Prior to this commit, this caused
the tables' formats to be changed somewhat by causing what normally
ranges to have a line output for each element of the range.  This bloats
the tables, and causes UCD.t to fail, as it is looking for a
particular syntax for the tables.

This commit causes the debugging information to be placed separately
but adjacent to the real data.  The ranges remain as they would be
without -annotate.  This removes the bloat (as the debugging info is
stripped out as the table is read in) and causes UCD.t to pass.

It also allows for the format of the real data to change in a later
commit, and the debugging info can remain relevant.

A future commit will improve the indentation of the comment annotations
lib/unicore/mktables