summaryrefslogtreecommitdiff
path: root/format.cc
Commit message (Collapse)AuthorAgeFilesLines
* The new XPath parser has been integrated, although I have removed theJohn Wiegley2008-07-201-6/+6
| | | | | | | XML-related bits -- I just wanted the better infrastructure that had been created during the rewrite. It doesn't work, but it compiles and links now. This means that all of the previous 3.0 code has been moved over, although there are still snippets of code in pending/old that need to be restored.
* Brought in the final round of 3.0 code, although it does not compile yet:John Wiegley2008-07-201-16/+16
| | | | report, session, parts of xpath, main, journal, option.
* The code is compiling again, but it's far from being able to run yet.John Wiegley2008-05-081-73/+92
|
* Made separate modules for the csv command, since the prior method wasJohn Wiegley2008-04-131-23/+2
| | | | not fully correct.
* Added elision styles.John Wiegley2008-04-131-17/+65
|
* Reworked the way date/times are handled.John Wiegley2008-04-131-12/+10
|
* Tons of corrections and fixes to value expressions and lot figures.John Wiegley2008-04-131-20/+45
|
* *** empty log message ***John Wiegley2008-04-131-8/+15
|
* Added --ansi and --ansi-invert options.John Wiegley2008-04-131-1/+60
|
* Added much better error location.John Wiegley2008-04-131-8/+27
|
* Added a DATETIME value type.John Wiegley2008-04-131-12/+20
|
* *** empty log message ***John Wiegley2008-04-131-11/+10
|
* Began support for improved commodity handling.John Wiegley2008-04-131-3/+3
|
* Checked in all major updates.John Wiegley2008-04-131-20/+14
|
* *** empty log message ***John Wiegley2008-04-131-0/+2
|
* Added a check for null.John Wiegley2008-04-131-1/+1
|
* Transactions now track their beginning and ending position, as doJohn Wiegley2008-04-131-8/+40
| | | | | | | entries. The new format strings %xB %xE %xb %xe can be used to display those values relative to a transaction. The Emacs module now relies on this support to exactly determine where a transaction is, rather than the Elisp logic it relied on previously.
* Removed Python integration support.John Wiegley2008-04-131-117/+0
|
* Restructed the code that it can build and be used as a shared library.John Wiegley2008-04-131-4/+6
| | | | | The command-line version is still statically bound in the build process by default (for the sake of speed).
* *** empty log message ***John Wiegley2008-04-131-1/+1
|
* *** empty log message ***John Wiegley2008-04-131-1/+1
|
* See ChangeLogJohn Wiegley2008-04-131-9/+54
|
* Support has been added for clearing of individual transactions. SetJohn Wiegley2008-04-131-4/+64
| | | | `ledger-clear-whole-entries' in Emacs to revert to the old behavior.
* (parse_elements): The format codes %b and %e can be used to displayJohn Wiegley2008-04-131-0/+12
| | | | | the beginning and ending line numbers of an entry. (format): Output beginning and ending line for BEG_LINE and END_LINE types.
* (format): [1178223] Don't truncate to max_width in the case ofJohn Wiegley2008-04-131-1/+4
| | | | outputting balances.
* Moved `format_xml_entries' to xml.cc.John Wiegley2008-04-131-208/+0
|
* (truncated): Added "style" argument, so that at least Python users canJohn Wiegley2008-04-131-22/+86
| | | | | | | choose which output style they want (truncation at beginning, middle or end of the string). (export_format): Expose following handlers to Python: FormatTransactions, FormatEntries, FormatXmlEntries, FormatAccount, FormatEquity.
* (truncated): Simplified this method, and added schemes for truncatingJohn Wiegley2008-04-131-28/+63
| | | | | | | | at the beginning and middle of a string (neither of which seems better than truncating at the front). (output_xml_string): Change xml_string to output_xml_string, for simplicity's sake. Also, < and > are now output as &lt; and &gt;. (format_last_entry): Use output_xml_string for the account name as well as the code, payee and note.
* (format_equity::flush): If the equity balance uses multipleJohn Wiegley2008-04-131-4/+44
| | | | | commodities, then multiple "Equity" lines need to be printed, one for each. (format_equity::operator()): Same, but for individual accounts.
* Changes to support building with gcc 2.95.John Wiegley2008-04-131-0/+1
|
* (format_transactions::operator): Corrected a bad memory access.John Wiegley2008-04-131-1/+1
|
* *** empty log message ***John Wiegley2008-04-131-1/+1
|
* (parse_elements): Added %S, %B and %E elements, for printing theJohn Wiegley2008-04-131-1/+28
| | | | source path, beginning and ending positions of an entry.
* (format_last_entry): Output tr:cost as an amount, not as an amountJohn Wiegley2008-04-131-2/+5
| | | | string.
* (format): Pay attention to the max_width setting for each formattingJohn Wiegley2008-04-131-1/+8
| | | | | element. This means that "%.20N" can no longer exceed 20 characters of width.
* updated to 2.02John Wiegley2008-04-131-2/+1
|
* updated to version 2.0John Wiegley2008-04-131-0/+842
|
* changesJohn Wiegley2008-04-131-606/+0
|
* made several of the buffers used non-staticJohn Wiegley2004-09-261-1/+1
|
* added pysample.dat, which provides a more realistic example of using PythonJohn Wiegley2004-09-251-2/+14
|
* added a custom transaction formatter, format_entries, used by "print"John Wiegley2004-09-241-5/+37
|
* fixed an obscure "print" bugJohn Wiegley2004-09-241-11/+8
|
* shored up error checking of value expressionsJohn Wiegley2004-09-231-4/+11
|
* passing --enable-python to configure is now required for python supportJohn Wiegley2004-09-201-7/+7
|
* the "bal" command mostly works now in main.py; added a finalize_entry hookJohn Wiegley2004-09-201-6/+88
|
* changed the management of "xdata" in walk.hJohn Wiegley2004-09-171-3/+6
|
* further python integration improvementsJohn Wiegley2004-09-141-1/+10
|
* added support for ValueExpr objects to python.John Wiegley2004-09-101-3/+8
|
* added python support for Format() objects. see main.pyJohn Wiegley2004-09-101-8/+14
|
* Python fixes; starting adding support for using item_handlers in pythonJohn Wiegley2004-09-081-0/+20
|