command:validate)
It is now possible to use @smallexample @c input:validate (and
command:validate) to specify that an example should just be read by
ledger (and checked for errors) or that a ledger command should be
executed (with default input -f sample.dat, if none is specified).
These annotations have been added into ledger3.texi where appropriate.
Running the ledger3.texi test now takes a second or two, but a lot of
the @smallexamples are now automatically tested.
first changes in adding more testable examples to ledger3.texi
These look good. Could you put a brief explanation somewhere (not necessarily in ledger3.texi) on how to generate new tests? I should probably know where the command and input id numbers come from, but I don't.
The DocTests.py script will parse a given texinfo file for specially
marked examples, run the ledger command from the example, and check
the result against the example output from the documentation.
If one uses --exchange to force CSV display amounts into a particular
currency, then the commodity output column should match that currency.
Without this patch, the commodity column contains the original
commodity, not the commodity for the exported amount.
Rename to "Report filtering", "Output customization", "Commodity reporting". Second word is lowercase as exact same subsection exists with uppercase. Not a proper fix, but the quickest I found.
Rename from "Example Journal File: drewr.dat" to "Example Journal File" as makeinfo does not like ':' in titles.
Fix some old naming of cross references.
Rename @code{-Q} to @option{--download (-Q)}. The reasoning is that the reader of the manual is a newcomer, and as a newcomer --download is more self-explicit compared to a cryptic single letter. But information is kept for advanced user who can still exercise their mastery with cryptic things.
Fix short option -Z (and not -L) for --price-exp
Fix "@section Balance format" (as @option in title is causing issues with makeinfo).
Fix consistency of @option{--option @var{VAR}} by adding systematically @var{VAR}.
Add period at end of sentences.