hledger/hledger-lib/Hledger
Stephen Morgan 33369dfa6c lib: renderTable can now receive alignment and width specifications on all cells, and has an option to display the outer border.
This gives renderTable a little more customisation. Before any of the
commits of this PR, render would just receive a string to display in
each cell. After the second commit of this PR it would also receive a
width of the string (in place of stripping ANSI sequences and then
calculating the width). After this commit, it now also takes an
alignment, so you can make cells left or right aligned. The function
render calls renderTable with appropriate options to give the same
behaviour as before. Also, previously render would always put a border
around the table. We would take this output, and would sometimes strip
the border by dropping the first and last rows, and first and last
characters of every row. I've just added an option to control whether
to put the border in, so we can just not add it in the first place,
rather than stripping it later. Note that this is again just defining
helper functions; this extra power is not yet used anywhere.
2020-11-04 14:25:20 +11:00
..
Data lib: Write new showMixedAmount* functions which keep track of length. 2020-11-04 14:25:20 +11:00
Read lib: Make Default instances clearer, remove Default instance for Bool. 2020-10-23 14:14:11 -07:00
Reports lib: renderTable can now receive alignment and width specifications on all cells, and has an option to display the outer border. 2020-11-04 14:25:20 +11:00
Utils lib,cli: bal uses new amount display functions, no longer needs to strip ansi. 2020-11-04 14:25:20 +11:00
Data.hs move JSON instances from hledger-web to hledger-lib 2019-12-16 17:17:00 -08:00
Query.hs lib,cli: Store parsed Query in ReportOpts, rather than an unparsed 2020-10-23 14:14:11 -07:00
Read.hs lib,cli: Replace parsedate and mkdatespan with direct applications of fromGregorian, transaction now takes Day instead of a date string. 2020-08-29 15:08:28 -07:00
Reports.hs lib,cli: Store parsed Query in ReportOpts, rather than an unparsed 2020-10-23 14:14:11 -07:00
Utils.hs lib: Make Default instances clearer, remove Default instance for Bool. 2020-10-23 14:14:11 -07:00