Re: [fpc-pascal] FastHtmlParser does not fire OnFoundText on e.g. empty table cell

2017-01-01 Thread Graeme Geldenhuys
On 2016-12-31 20:53, Bart wrote: > I thought it was part of fpc packaes source Correct, it is now included with FPC. The problem being, I found 3 different copies in the various FPC packages. I've asked Michael van Canneyt if we can consolidate the various fasthtmlparser units into one location,

Re: [fpc-pascal] FastHtmlParser does not fire OnFoundText on e.g. empty table cell

2016-12-31 Thread Lars
On Thu, December 29, 2016 12:09 pm, Bart wrote: > On 12/29/16, Bart wrote: > > >> Is this intended behaviour? >> If so, could it be made configurable to do fire the OnFoundText event >> in such cases? > > Never mind, I did not think this through. > I solved my problem in a

Re: [fpc-pascal] FastHtmlParser does not fire OnFoundText on e.g. empty table cell

2016-12-31 Thread Bart
On 12/31/16, Lars wrote: > I have plans to put fast html parser on an official git hub so that any > issues can be reported centrally I thought it was part of fpc packaes source

Re: [fpc-pascal] FastHtmlParser does not fire OnFoundText on e.g. empty table cell

2016-12-31 Thread Lars
On Fri, December 30, 2016 1:22 pm, Graeme Geldenhuys wrote: > On 2016-12-29 18:43, Bart wrote: > >> Is this intended behaviour? >> > > I'm not sure. I used FastHTMLParser 2+ months ago and discovered a > couple of bugs in it, and similar behaviour to what you mentioned. I wrote > some unit tests

Re: [fpc-pascal] FastHtmlParser does not fire OnFoundText on e.g. empty table cell

2016-12-30 Thread Graeme Geldenhuys
On 2016-12-29 18:43, Bart wrote: > Is this intended behaviour? I'm not sure. I used FastHTMLParser 2+ months ago and discovered a couple of bugs in it, and similar behaviour to what you mentioned. I wrote some unit tests for it and fixed the bugs I found. I'll make a not to publish my changes and

Re: [fpc-pascal] FastHtmlParser does not fire OnFoundText on e.g. empty table cell

2016-12-29 Thread Bart
On 12/29/16, Bart wrote: > Is this intended behaviour? > If so, could it be made configurable to do fire the OnFoundText event > in such cases? Never mind, I did not think this through. I solved my problem in a better way (it should never have depended on the OnFoundText

[fpc-pascal] FastHtmlParser does not fire OnFoundText on e.g. empty table cell

2016-12-29 Thread Bart
Hi, If you parse HTML using FastHtmlParser in order to extract a HTML table content, then, if a table contains an empty cell (), the OnFoundText event is not fired. While technically this may be correct, I would have expected it to fire OnFoundText(''). In my program I use the OnFoundText to