The --format option will completely ignore line widths, unless you tell it
to.


The xml output has account totals in it. XML might be better since it has
more concrete delimiters than a built in human readable report.

Using format statements you can get exactly what you want, and only what you
want without extraneous data.  If I were trying to interface to another
program I would go that route (in fact, I am going that route)

On Thu, Oct 27, 2011 at 01:58, stunsch <[email protected]> wrote:

> The only problem I have is that I don't want any output to be cropped
> due to the fact that it does not fit into one line in the command line
> output.
> This basically only affects accounts, due to nesting.
>
> --format looks good, but I guess I was looking for something higher
> level. Just a switch to avoid the text shrinking to fit the width.
>
> Maybe xml would be a better option, and calculating balances myself
> with the output.
> Would that make sense?
>
> Just to be clear, it's not possible to output balances in xml format,
> right?
>
> Thanks, Stefan Tunsch
>
> On 26 oct, 20:33, Craig Earls <[email protected]> wrote:
> > Use --format  commands.  It can put our whatever you want, within reason.
> > Give me an idea of what you want to see.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Oct 26, 2011 at 08:05, Stefan Tunsch <[email protected]> wrote:
> > > Hi!
> >
> > > I want to interface with ledger from another program.
> > > I want to capture the output of ledger, parse it and process it
> further.
> >
> > > The issue I am having is that the output ledger generates is being
> > > formatted to either 80 or I think 132 characters per line.
> > > If the account name is bigger, it crops it.
> >
> > > I need a way to get the complete information no matter how long the
> account
> > > names are.
> >
> > > I have tried the xml command, but as I understand it is equivalent to
> the
> > > register command.
> > > I understand that I cannot mimic the balance command and all it's
> options
> > > using the xml command.
> >
> > > Is that correct?
> >
> > > How should I proceed?
> >
> > > Thanks, Stefan Tunsch
> >
> > --
> > Craig, Corona De Tucson, AZ
> > enderw88.wordpress.com
>



-- 
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

Reply via email to