in reply to Re^3: Remove empty column(s) from unpack template
in thread Remove empty column(s) from unpack template
Ah. I see what you are getting at. Yes, I think it probably could be used for that purpose.
Mind you, having just taken an extended squint inside Text::Autoformat, i think it would take a very brave person to try and add table inferencing code with all the other things going on in that module.
I'm not adverse to making full use of the regex engine, and the regexes in there are nicely laid out and commented. But, trying to combine the heuristic in the OPs code, with the various heuristics already used in that module, and come away with something that worked, even for some fairly specific cases let alone the general case, would be quite an achievement.
For example, imagine trying to extend the POD example of a quoted email/maillist post that has had it's formatting screwed over by re-quoting. What if the original text contained a table with some left and some right justified fields? Combining the heuristics to extract and reformat that would be quite difficult.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Remove empty column(s) from unpack template
by duff (Parson) on Aug 01, 2007 at 14:12 UTC |