Subject: | Handling of ASCII art diagrams |
Date: | Mon, 13 Aug 2007 15:19:43 -0400 |
To: | bug-text-autoformat [...] rt.cpan.org |
From: | Nelson Elhage <nelhage [...] MIT.EDU> |
I feel like Text::Autoformat ought to do the right thing with ASCII
art tables, e.g.:
+------------+-----------+-----------+-----------+
|hex bin |hex bin |hex bin |hex bin |
+------------+-----------+-----------+-----------+
|0 0000 |4 0100 |8 1000 |C 1100 |
|1 0001 |5 0101 |9 1001 |D 1101 |
|2 0010 |6 0110 |A 1010 |E 1110 |
|3 0011 |7 0111 |B 1011 |F 1111 |
+------------+-----------+-----------+-----------+
(i.e. leave them alone). The current version (1.13) tries to fill them
normally, with horrible results, e.g (with all => 1).
+------------+-----------+-----------+-----------+ |hex bin |hex bin
|hex bin |hex bin | +------------+-----------+-----------+-----------+
| 0000 |4 0100 |8 1000 |C 1100 | 1 0001 |5 0101 |9 1001 |D 1101 | 2
| 0010 |6 0110 |A 1010 |E 1110 | 3 0011 |7 0111 |B 1011 |F 1111 |
+------------+-----------+-----------+-----------+