plain text report output
Derek Atkins
warlord at MIT.EDU
Wed Apr 5 13:13:39 EDT 2006
Try using lynx? Or just load it into firefox and then Save?
-derek
Quoting TyrusMaynard <mayn at main.nc.us>:
> I am asking the gnucash list for any expertise on html2text, such as
> suggestions offered by Andrew earlier on this thread. Andrew
> suggested to first export the report (generates html file) and then
> deploy html2text ; the sed pipe in the earlier posted example doesn't
> relate to the problem shown in the examples below.
> I think/hope that this tool can become the "work around" for well
> aligned text output from html reports, but I havent been able to get
> around the unusual fragmentation of some fields into a multi row .
>
> It seems to me that html2text has some set definition of column
> width whenever it parses html which contains table tags although I
> can't find that thru info or man documents. It also seems that the
> forward slash in any date field is somehow is interpreted as a line
> feed within any given row/column tag location. Below are the samples
> with example html source.
> Thanks Ty
>
>
> Here are the fields of the report (Num is empty of data):
>
> Date Num Description Transfer from/to Amount
>
> Here is a sample section acquired by copy/paste to text:
> Good single line rows , its OK except for the skew of column which are all
> well aligned in the HTML display in gnucash and other browsers.
>
> 04/05/2005 BRIGGS CONSTR. hydraul oil Assets.chk153 $23.28 04/07/2005
> ASHEVILLE HOSE & E Assets.chk153 $29.40
> 04/22/2005 SmokyMtn Petro hydraul Assets.chk153 $33.66
>
> Here is same sample of HTML sent thru html2 text:
> "html2text -o output.file -nobs input.file"
> The date and description field has become multi-row for ??? reason
>
> 04/ BRIGGS CONSTR.
> 05/ hydraul oil Assets.chk153 $23.28
> 2005
> 04/
> 07/ ASHEVILLE HOSE & E Assets.chk153 $29.40
> 2005
> 04/ SmokyMtn Petro
> 22/ hydraul Assets.chk153 $33.66
> 2005
>
> Here is the sample (first row) of HTML source:
>
> <TR>
> <TD BGCOLOR="#ffffff">
> 04/05/2005
> </TD>
> <TD BGCOLOR="#ffffff">
> <BR>
> </TD>
> <TD BGCOLOR="#ffffff">
> BRIGGS CONSTR. hydraul oil
> </TD>
> <TD BGCOLOR="#ffffff">
> Assets.chk153
>
> </TD>
> <TD BGCOLOR="#ffffff" NOWRAP ALIGN="right">
> $23.28
> </TD>
> </TR>
>
>
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list