John Wiegley
c0285de46b
Moved `format_xml_entries' to xml.cc.
2008-04-13 02:41:03 -04:00
John Wiegley
bb444b740f
(truncated): Added "style" argument, so that at least Python users can
...
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.
2008-04-13 02:41:01 -04:00
John Wiegley
38b126edbd
(truncated): Simplified this method, and added schemes for truncating
...
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 < and >. (format_last_entry): Use output_xml_string
for the account name as well as the code, payee and note.
2008-04-13 02:40:59 -04:00
John Wiegley
32df4dd563
(format_equity::flush): If the equity balance uses multiple
...
commodities, then multiple "Equity" lines need to be printed, one for
each. (format_equity::operator()): Same, but for individual accounts.
2008-04-13 02:40:59 -04:00
John Wiegley
1c7669671c
Changes to support building with gcc 2.95.
2008-04-13 02:40:57 -04:00
John Wiegley
9d8b36a258
(format_transactions::operator): Corrected a bad memory access.
2008-04-13 02:40:56 -04:00
John Wiegley
f3c736006c
*** empty log message ***
2008-04-13 02:40:55 -04:00
John Wiegley
4fda551752
(parse_elements): Added %S, %B and %E elements, for printing the
...
source path, beginning and ending positions of an entry.
2008-04-13 02:40:54 -04:00
John Wiegley
8f63d2d172
(format_last_entry): Output tr:cost as an amount, not as an amount
...
string.
2008-04-13 02:40:53 -04:00
John Wiegley
9cd4cf6df8
(format): Pay attention to the max_width setting for each formatting
...
element. This means that "%.20N" can no longer exceed 20 characters
of width.
2008-04-13 02:40:50 -04:00
John Wiegley
1db60b12e2
updated to 2.02
2008-04-13 02:40:48 -04:00
John Wiegley
c9fb11bd60
updated to version 2.0
2008-04-13 02:40:47 -04:00
John Wiegley
a32173ace6
changes
2008-04-13 02:40:47 -04:00
John Wiegley
f8a62c444f
made several of the buffers used non-static
2004-09-26 23:48:31 -04:00
John Wiegley
66bc51db6d
added pysample.dat, which provides a more realistic example of using Python
2004-09-25 03:30:23 -04:00
John Wiegley
d110df6741
added a custom transaction formatter, format_entries, used by "print"
2004-09-24 06:29:01 -04:00
John Wiegley
2f16a82132
fixed an obscure "print" bug
2004-09-24 05:33:12 -04:00
John Wiegley
c57a2e74b8
shored up error checking of value expressions
2004-09-23 06:34:27 -04:00
John Wiegley
a7ea33a8ec
passing --enable-python to configure is now required for python support
2004-09-20 04:07:02 -04:00
John Wiegley
5429792edc
the "bal" command mostly works now in main.py; added a finalize_entry hook
2004-09-20 03:25:28 -04:00
John Wiegley
79b664f6f0
changed the management of "xdata" in walk.h
2004-09-17 04:38:24 -04:00
John Wiegley
f2162bf7ee
further python integration improvements
2004-09-14 06:36:16 -04:00
John Wiegley
ff4589caae
added support for ValueExpr objects to python.
2004-09-10 20:08:07 -04:00
John Wiegley
435b9ed779
added python support for Format() objects. see main.py
2004-09-10 19:52:51 -04:00
John Wiegley
72d69d3ec9
Python fixes; starting adding support for using item_handlers in python
2004-09-08 21:21:21 -04:00
John Wiegley
63367e3aac
the amount/balance/value logic is now a library, completely separate from ledger
2004-08-29 23:32:29 -04:00
John Wiegley
1fd37a432d
cleanup; fully switched to autoconf -- use scripts/acprep
2004-08-24 02:11:32 -04:00
John Wiegley
73e2abd1b2
a little cleanup; reversed the meaning of -z and -p (to be more mnemonic)
2004-08-23 18:23:31 -04:00
John Wiegley
1091f0d07b
slight cleanup
2004-08-23 02:11:58 -04:00
John Wiegley
6365b8b7a8
simplified some code
2004-08-22 18:34:18 -04:00
John Wiegley
02168c7823
escape codes in format strings; can now redefine individual report formats
2004-08-22 02:40:18 -04:00
John Wiegley
5619a1d5be
a little more reorganizing, but only fractionally faster. diminishing returns!
2004-08-22 02:13:41 -04:00
John Wiegley
6d5333b896
use value_t instead of balance_pair_t; gains for 10% binary, 2% textual
2004-08-21 23:18:45 -04:00
John Wiegley
c1e5119e97
fixes so that ledger will build optimized
2004-08-21 16:15:55 -04:00
John Wiegley
000bfe1cec
only compute the cost when it differs from the amount
2004-08-21 15:55:03 -04:00
John Wiegley
06ac87ab20
support arbitrary precision after the decimal point; increase speed 0-10%
2004-08-21 01:43:50 -04:00
John Wiegley
bf923ab33e
use std::auto_ptr wherever a thrown exception might otherwise leak memory
2004-08-19 03:28:48 -04:00
John Wiegley
f62a4906d1
fix to textual parsing, and a bit of reconstruction in main.cc
2004-08-19 02:30:56 -04:00
John Wiegley
e1086a3040
added --help docs, and fixed some problems with balance reproting
2004-08-18 05:26:59 -04:00
John Wiegley
8af33274fb
more time interval support: last month, last feb, next year, etc.
2004-08-18 02:15:31 -04:00
John Wiegley
e98144ee28
further performance tweaks
2004-08-17 22:30:01 -04:00
John Wiegley
325cf53ea7
several significant speed improvements (removed excessive copying of strings)
2004-08-17 04:57:38 -04:00
John Wiegley
b009998930
if NO_CLEANUP is defined in the Makefile (now default), no cleanup is done
2004-08-17 03:09:46 -04:00
John Wiegley
bb044f8820
fix to amount printing
2004-08-14 00:32:44 -04:00
John Wiegley
7610aec86d
added support for interval reporting; changed some option flags
2004-08-12 20:06:06 -04:00
John Wiegley
a77c20a772
many more formatting changes
2004-08-11 22:54:42 -04:00
John Wiegley
cd8f61fb2d
more cleanup
2004-08-11 03:23:19 -04:00
John Wiegley
3edf298633
added several kinds of transaction filters
2004-08-11 01:37:12 -04:00
John Wiegley
a2efee0a8e
use polymorphism, instead of templates, for walking items
2004-08-10 18:19:36 -04:00
John Wiegley
799e97e420
more bug fixes
2004-08-09 17:49:06 -04:00