[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev HText_beginAnchor/HText_endAnchor problems
From: |
Klaus Weide |
Subject: |
lynx-dev HText_beginAnchor/HText_endAnchor problems |
Date: |
Mon, 30 Nov 1998 18:35:37 -0600 (CST) |
Here is a demonstration of some problems. If you want to try it,
be careful to preserve the exact number of spaces when handling
this text. A patch will follow.
Klaus
<HTML>
<TITLE>Demo</TITLE>
<P>There are some problems
HText_beginAnchor/<WBR>HText_endAnchor regarding the
interaction of line splitting and link number insertion and
removal. They don't become apparent often. This test
exercises some of them.</P>
<P>A "hiden link" is an anchor with a HREF attribute and empty or
whitespace-only content. Note that, when link numbering is
on, numbers for such links get removed (in HText_endAnchor)
after they have already been inserted into the HText structure.
To see where they would have been, use -hiddenlinks=merge.</P>
<NOTE>The test below assume a screen width of exactly 80 columns.</NOTE>
<P>A line may be split inappropriately within a word after a removed hidden
anchor:</P>
<P>
Some words more words some words more words some words more words.<A
HREF=X> </A>More words.
</P>
<P>There should be a space between the sentences:</P>
<P>
Some words more words some words more words some words more mowords.<A
HREF=X>
More</A> words.
</P>
<P>This also shows up when the anchor is hidden and the number gets removed:</P>
<P>
Some words more words some words more words some words more mowords.<A
HREF=X></A>
More words.
</P>
<P>Some line numbers in front of "hidden links" don't get
recognized and removed when they should; the anchors don't get
recognized as "hidden":</P>
<PRE>
<A HREF=inpre1>
</A>after anchor.
<A
HREF=inpre2>
</A>after anchor.
</PRE>
<P>The next empty anchor <EM>does</EM> get removed, but then it
<EM>crashes</EM>
lynx. Try ^R)eloading several times if it does not happen immediately.
Some wrong memory locations get zeroed.</P>
<PRE>
<A
HREF=inprecrash>
</A>after anchor.
</PRE>
</HTML>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev HText_beginAnchor/HText_endAnchor problems,
Klaus Weide <=