Re: linemode diffs for HText callbacks

> 
> It's not obvious.  LMText_beginAnchor() is currently called as a
> registered callback.  Registration takes place in HTBrowse.c.
> Take a look at the stack trace from my previous message and you'll
> see how it gets called.
> 
    but this means you call LMHText_beginAnchor for every tag that has some
    kind of link (i.e. A, IMG, BODY, AREA, FRAME, etc.). Have a look
    to libwww/Library/src/HTML.c for all the tags that call the link
    callback.

    maybe you should check for the link callback to be called for <A>
    or <A HREF> instead of <A NAME>

    Here is an example of this, if you think it's it I can check that in
    (and put anchors back to work - sorry for my previous "fix" :)

-- Raffaele

Index: GridText.c
===================================================================
RCS file: /sources/public/libwww/LineMode/src/GridText.c,v
retrieving revision 1.48
diff -r1.48 GridText.c
87a88
>       TextAnchor *            current_anchor;
158c159
<     self->first_anchor = self->last_anchor = 0;
---
>     self->first_anchor = self->last_anchor = self->current_anchor = 0;
764a766,769
> 
>     if (elem_num != HTML_A)
>       return;
> 
776a782
>      text->current_anchor = a;
788c794
<     TextAnchor * a = text->last_anchor;
---
>     TextAnchor * a = text->current_anchor;
789a796,799
> 
>     if (!a)
>       return;
> 
794a805
>     text->current_anchor = 0;
1094d1104
< #if 0
1096d1105
< #endif

Received on Friday, 25 June 1999 14:48:41 UTC