Commit graph

1764 commits

Author SHA1 Message Date
John Wiegley
d30c3fb869 Guard against a possible null value 2013-09-20 00:54:43 -05:00
Alexis Hildebrandt
30b6acb0b0 Apply --time-colon option only to time commodities
See #989
2013-09-07 09:38:13 +02:00
Tim Crews
4bcaa45f16 Additional changes required for MSVC to compile ledger.
These changes only matter if ledger is compiled with USE_PYTHON.
2013-06-16 12:39:30 -07:00
Tim Crews
0c071d6e1c Corrected filename for strptime.cc 2013-06-15 16:37:04 -07:00
Tim Crews
0dbb38fe27 Source changes needed for Microsoft Visual C++ compatibility.
Includes an implementation of strptime, compiled only for Win32 platform.
2013-06-14 21:29:47 -07:00
thdox
d56f9c4032 Improve documentation about differences between ledger 2.6 and ledger 3.0.
GnuCash support removed, environment variables deprecated.
2013-06-01 18:01:19 +02:00
John Wiegley
a79cf36c64 Fix #784 2013-05-23 03:23:49 -05:00
John Wiegley
6b52a1684f Fixed parsing of the "fixed" directive 2013-05-19 04:16:12 -05:00
John Wiegley
82345899f7 Remove some unnecessary and complicated logic
Fixes #712
2013-05-19 03:38:20 -05:00
John Wiegley
d13b7180bf Add a missing member initializer to a copy constructor
Fixes #686
2013-05-19 02:51:47 -05:00
John Wiegley
3656e692ff Another whitespace fix 2013-05-19 02:51:29 -05:00
John Wiegley
c70e959214 Add a missing % character 2013-05-19 02:41:46 -05:00
John Wiegley
62c2ab968c Whitespace fix 2013-05-19 02:41:38 -05:00
John Wiegley
db35e5c8fc Resolve new compiler warnings from Clang 2013-05-19 02:14:27 -05:00
John Wiegley
0ab56f5d85 Add -Wno-disabled-macro-expansion 2013-05-19 02:14:27 -05:00
Johann Klähn
44823d241f indent output of ledger xml 2013-03-08 23:16:31 +01:00
Johann Klähn
a875940a93 fix ledger xml output, remove ledger json command
As the format used by property trees to represent valid JSON
and that for valid XML is too different and given that there are
more requests for valid XML output I decided to pursue a quick fix
and remove the json command in favor of a working xml command.

See bug #782, #909, recent discussion on mailing list.

JSON support is postponed until I or someone else finds time to work on
this or the python bindings are more stable.
2013-03-08 22:56:01 +01:00
John Wiegley
0951bcebef Bump copyright information to 2013 2013-02-18 06:51:21 -06:00
John Wiegley
bc5563289c Fixed bug with --day-break option 2013-02-05 00:08:46 -06:00
John Wiegley
989f869747 Bump format parsing buffer to 64K 2013-02-03 08:31:17 -06:00
Craig Earls
595a8afa44 Fixes bug 377. Ledger now complains if it is given only a directory as input. 2013-02-02 15:59:46 -07:00
Craig Earls
01b8416f24 Fix bug 795 858, printing "(null)" instead of empty string "" 2013-02-02 09:44:31 -07:00
John Wiegley
9e9d99e918 Removed an unnecessary if. Fixes #140 2013-01-31 04:56:12 -06:00
Craig Earls
d9b1258c34 Merge pull request #140 from enderw88/Bug634-floor-ceil-round
Bug 634 Added roundto function, optimized floor and ceiling
2013-01-30 18:56:00 -08:00
John Wiegley
2b245f823b Added missing call to timelog.close() 2013-01-30 17:00:07 -06:00
Craig Earls
0df1366168 Bug 634 Added roundto function, optimized floor and ceiling
Fixes Bug634 by adding roundto(amount, places).
2013-01-30 15:35:31 -07:00
Craig Earls
1903ff7c2e Fixed problem finding the default priced file.
Bug fix to detect badly specified priced files on the command line didn't handle the default correctly.
2013-01-29 14:10:08 -07:00
Craig Earls
1b3dfa1297 Fixes regression error introduced by tags command patch
Not sure how the changes to the options got into the repot.cc file, but this takes the changes out.
2013-01-29 11:26:43 -07:00
John Wiegley
1e709d1040 Merge pull request #132 from enderw88/bug514-sort-accounts-and-commodities
Fixes bug 514.  accounts and commodities output now sorts
2013-01-29 09:36:03 -08:00
John Wiegley
69001d927a Merge pull request #131 from enderw88/add-tags-command
Addes tags command and --values option
2013-01-29 09:35:02 -08:00
John Wiegley
ec7402fff8 Merge pull request #107 from afh/pull/time_colon
Add --time-colon option
2013-01-29 09:34:08 -08:00
Craig Earls
aba5c1aa46 Fixes bugs 705 and 862. Ledger now fails if init or pricedb files are specified on the command line but not found. 2013-01-29 10:30:18 -07:00
Craig Earls
f9da94c909 Fixes bug 514. accounts and commodities output now sorts
updated tests included.
2013-01-29 10:03:47 -07:00
Craig Earls
3e72a51dc3 Addes tags command and --values option
Tags command reports all metadat tags in use.  With the
values option it reports tags and their values.
2013-01-29 09:42:10 -07:00
Johann Klähn
b3b11bed3b Merge branch 'master' into next
Some commits were on the master branch but not yet on the next branch due to a
pull request to master after those two branches diverged. This merge
ensures that next ⊇ master.
2013-01-18 18:26:03 +01:00
Johann Klähn
3fe2ef5956 change handling of standard input
For `-f /dev/stdin`, the `pathname` of the parsing context will be empty
as for any other streamed input.

`instance_t::include_directive` did not work as expected for `-f /dev/stdin`
and relative file names. One would expect them to be relative to the current
directory rather than `/dev`.

This will lead to `While parsing file ""` messages. This could be
adjusted to read `While parsing standard input`, but maybe it's not
worth the special cases.

This commit also fixes bug 788: behaviour of source_context for '-f -'
2013-01-17 12:19:23 +01:00
John Wiegley
9252c5f1f3 Revert "Bug551 fixed, commodities and accounts now sort"
This reverts commit 67a598f6ff.
2013-01-16 18:14:34 -06:00
John Wiegley
d1c96190e9 Revert "fix bug 788: behaviour of source_context for '-f -'"
This reverts commit 0a1ff03542.
2013-01-16 18:10:30 -06:00
Johann Klähn
3ed53b7b3c whitespace cleanup 2013-01-16 23:11:45 +01:00
John Wiegley
6ff7dac73f Merge pull request #122 from enderw88/Lisp-fixes
Fix ledger-add-entry
2013-01-16 12:18:33 -08:00
Johann Klähn
d922f46595 fix bug 748: option aliases not recognized 2013-01-15 23:30:17 +01:00
Johann Klähn
0a1ff03542 fix bug 788: behaviour of source_context for '-f -'
`session_t::read_data` did not set context.pathname to `/dev/stdin`
for the special case `-f -`. I chose to adjust `source_context` too
as there is no sensible context if no file name is provided.
2013-01-15 23:03:39 +01:00
Johann Klähn
2b1cfd6706 remove superfluous 'break' 2013-01-15 21:17:03 +01:00
Johann Klähn
428490e917 fix for 'store absolute paths internally'
`parent_path` was called on unprocessed path
so neither `resolve_path` nor `filesystem::absolute` had any effect.
2013-01-15 21:16:15 +01:00
Craig Earls
856f4b673c Merge remote-tracking branch 'upstream/next' into next 2013-01-14 21:56:33 -08:00
John Wiegley
aba0a5ed2d Improvement to account alias expansion
Aliases are now expanded not only if they occur by themselves, but also
if they occur as the beginning of a multi-part account.  Given <alias
Food=Expenses:Food> the account <Food:Tomatos> should now be expanded to
<Expenses:Food:Tomatos>.
2013-01-11 07:08:51 -06:00
John Wiegley
82ac7ef313 Guard against a possible NULL 2013-01-11 00:10:30 -06:00
Craig Earls
67a598f6ff Bug551 fixed, commodities and accounts now sort
Added two compare structs for std::map to use.  I tried to override
the < operator got a clean compile but map wasn't picking it up, I
couldn't figure out why so I took the less elegant route.
2013-01-07 20:15:49 -07:00
John Wiegley
3445ddec09 Merge branch 'next' of github.com:ledger/ledger into next 2012-11-26 12:52:12 -06:00
John Wiegley
2ac996d916 Shorten debug comment 2012-11-23 16:54:03 -06:00