Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clean up the tbl top-level printing code and document the parts of it. | Kristaps Dzonsons | 2011-01-03 | 1 | -23/+46 |
| | |||||
* | Start using term_strlen() instead of strlen(). tbl_term.c can now | Kristaps Dzonsons | 2011-01-03 | 1 | -34/+39 |
| | | | | | properly handle embedded escapes when calculating its widths. NOTE: this doesn't yet apply to the decimal-point calculation. | ||||
* | Make width calculations occur within tbl_term.c, not tbl.c. This allows | Kristaps Dzonsons | 2011-01-03 | 1 | -39/+228 |
| | | | | | | | | | | | | | | | | for front-ends to make decisions about widths, not the back-end. To pull this off, first make each tbl_head contain a unique index value (0 <= index < total tbl_head elements) and remove the tbl_calc() routine from the back-end. Then, when encountering the first tbl_span in the front-end, dynamically create an array of configurations (termp_tbl) keyed on each tbl_head's unique index value. Construct the decimals and widths at this time, then continue parsing as before. The termp_tbl and indexes are required because we pass a const tbl AST into the front-end. | ||||
* | Turn on -Tascii tbl printing. The output still has some issues---I'm | Kristaps Dzonsons | 2011-01-02 | 1 | -0/+358 |
not sure whether it's in the header calculation or term.c squashing spaces or whatever, but let's get this in for general testing as soon as possible. |