Alexis Hildebrandt
1dd9dcaab4
Bump copyright notice to 2015
...
The following script makes it a no-brainer:
% NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \
| xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
2014-12-27 11:24:55 +01:00
Martin Michlmayr
a5ffcc42ff
Improve backwards compatibility with ledger2
...
This brings some single character format strings in line with what
they actually meant in ledger2.
Bug fix for #755
2014-05-30 23:52:36 -04:00
Martin Michlmayr
2cee0fe23f
Cosmetic change - format code consistently
...
Add a space between if and the opening bracket, between a closing
round bracket and the following opening curly bracket, etc.
2014-05-18 09:51:32 -04:00
Alexis Hildebrandt
2b9208e850
Bump copyright information to 2014
2014-02-02 12:36:22 +01:00
John Wiegley
0951bcebef
Bump copyright information to 2013
2013-02-18 06:51:21 -06:00
John Wiegley
989f869747
Bump format parsing buffer to 64K
2013-02-03 08:31:17 -06:00
John Wiegley
4681e58d7f
Converted the Ledger build system to use CMake
2012-05-20 04:48:05 -05:00
John Wiegley
f4f3058b8c
Switch to using Boost.Format
2012-05-14 21:44:00 -06:00
John Wiegley
6305855997
Don't allow trailing ws in abbrev. account segments
...
Fixes #358
2012-03-16 05:30:34 -05:00
John Wiegley
71d0033b6f
Corrected several compile and link problems
2012-03-06 23:04:27 -06:00
John Wiegley
b6adc8f460
Use unique_ptr instead of std::auto_ptr
2012-03-05 17:46:42 -06:00
John Wiegley
036200e959
Make copying of format_t objects memory-safe
2012-03-05 05:53:36 -06:00
John Wiegley
96ec764c4a
Don't copy the next pointer in element_t's copy ctor
2012-03-05 05:06:57 -06:00
John Wiegley
5abbf44583
Corrected copy of format_t objects
...
Copying of sub-elements was causing pointer overlap.
2012-03-05 05:03:53 -06:00
John Wiegley
35ace8816a
Improvements to format parsing
...
Fixes #337
2012-03-02 10:58:16 -06:00
John Wiegley
e2afc783db
Increased file copyrights to 2012
2012-02-29 22:32:23 -06:00
John Wiegley
bc9ff7095f
Introduced a new SCOPE expression terminal
2012-02-20 17:20:22 -06:00
John Wiegley
c3a9a7d2c5
Fixed many Clang type conversion warnings with static_cast
2012-02-17 15:17:52 -06:00
John Wiegley
a19b541dd9
Removed unneeded default cases
2012-02-17 15:15:32 -06:00
John Wiegley
2f1b1c8ced
Change weighting of account-name abbreviation
...
Parent accounts are abbreviated even more, so that child accounts can
show more text.
2010-06-21 18:05:26 -04:00
John Wiegley
c367dcab82
Improved algorithm for abbreviating account names
2010-06-14 07:20:23 -04:00
John Wiegley
0bb9c11062
Changed display order of format exceptions
2010-06-13 03:52:20 -04:00
John Wiegley
dea2aed0b5
Untabified all source files
2010-06-11 17:02:25 -04:00
John Wiegley
ab416f759f
Updated copyrights to 2003-2010
2010-03-05 22:14:10 -05:00
John Wiegley
7a44791221
Optimization in the formatting of string values
2009-11-14 02:49:38 -05:00
John Wiegley
7cd37b1d50
Moving the #include of unistring.h into format.h
2009-11-10 18:43:38 -05:00
John Wiegley
bf24b93818
Fixes to the value expression parser and evaluator
2009-11-10 02:26:20 -05:00
John Wiegley
fb8be53edb
Redesigned the format_t class
2009-11-09 02:06:08 -05:00
John Wiegley
c3535d06c8
Redesigned the expr_t, predicate_t, query_t classes
2009-11-09 02:06:06 -05:00
John Wiegley
aae134f692
Fixed a display issue with the balance report
2009-10-27 19:01:55 -04:00
John Wiegley
ca1560d53d
Fixed overflow bug introduced by the warning fixes
2009-10-25 05:39:47 -04:00
John Wiegley
588f2ef2f5
Fixed many compiler warnings from g++ 4.4
2009-10-25 05:01:39 -04:00
John Wiegley
e8f315f00d
Correctly align amounts formatted as "%12(amount)"
2009-06-28 15:53:46 +01:00
John Wiegley
8cb80185d5
Restored the --truncate option, added baseline test
2009-06-21 19:06:07 +01:00
John Wiegley
110f0b8023
Enabled use of pre-compiled headers by default
2009-03-10 17:02:03 -04:00
John Wiegley
c11d325712
Reduced the #include dependency tree to a minimum
2009-03-04 23:53:43 -04:00
John Wiegley
9d4e888ef5
Cured several harmless compiler warnings
2009-03-04 04:31:34 -04:00
John Wiegley
4af1bfdde3
Allow special %{} formatting sequence
...
Although %(amount) inserts an item's amount, it only does exactly that.
There is no special consideration like stripping of lot details, or
reduction to the base commodity, etc. For those things, and to make
sure it was display in red if negative, the canonical form would be:
%(ansify_if(justify(scrub(amount), 12, -1, true), red if amount < 0))
You can now use the special %{} form as an alternate to this:
%12{amount, red if amount < 0}
The two expand to the same underlying expression.
2009-03-03 15:06:15 -04:00
John Wiegley
38122c2224
Corrected warnings g++-4.3.3 was complaining about
2009-02-28 04:54:54 -04:00
John Wiegley
316b854676
Fixed a buffer overrun
2009-02-27 01:46:16 -04:00
John Wiegley
238bd7f8a5
Marked all strings needing internationalization
...
These strings are now collected automagically in the file po/ledger.pot.
If you'd like to produce a translation, just run this command after
building Ledger:
msginit -l LOCALE -o LANG.po -i po/ledger.pot
Where LOCALE is a string like de or en_GB, and LANG is a short
descriptive word for your language.
Then send me this .po file so I can commit it to the Ledger sources
(alternatively, you could maintain the file in a fork on GitHub), and
setup the build script to format and install your new message catalog
during a "make install".
2009-02-25 03:51:42 -04:00
John Wiegley
944c63e6f2
The Great Renaming, Part II
...
The last commit did not contain the majority of changes because of a
slight mishap. This contains the real changeset.
2009-02-23 19:07:30 -04:00
John Wiegley
13812346b6
Handle reporting widths that are too small
2009-02-21 02:17:03 -04:00
John Wiegley
a181ac52d3
Corrected a column-wise formatting issue
2009-02-20 15:41:48 -04:00
John Wiegley
cae49a2998
Efficiency fix for the formatting code
2009-02-19 12:49:25 -04:00
John Wiegley
07f4aefdfd
Removed the %*| special char, for %*(" ")
2009-02-17 17:58:50 -04:00
John Wiegley
caeb336176
The format code %C is now equal to %(fmt_C)
2009-02-15 19:53:38 -04:00
John Wiegley
5516a7ddb5
Removed an unused function
2009-02-15 19:49:05 -04:00
John Wiegley
20475478a4
Removed the %! formatting code, as it does nothing
2009-02-15 16:42:14 -04:00
John Wiegley
326cbea4c7
The formatting code no longer justifies values
...
This is done in the value code, which knows -- based on the value's type
-- how best to apply the justification.
2009-02-13 19:27:37 -04:00