Re: #anchor causes strangely placed <p> tags

Michael Olson <[email protected]> Wed, 31 May 2006 09:42:20 -0400
Newsgroups gmane.emacs.wiki.general
Message-ID <[email protected]>
Stefan van der Walt <[email protected]> writes:

> This muse snippet:
>
> #Surjective
>
> *** Surjective function
>  - From http://en.wikipedia.org/wiki/Surjective_function
>  - See also http://mathworld.wolfram.com/Surjection.html
>
> generates the following HTML:
>
> <p><a name="Surjective" id="Surjective"></a>
> <h4>Surjective function</h4>
> <ul>
> <li>From <a href="http://en.wikipedia.org/wiki/Surjective_function">http://en.wikipedia.org/wiki/Surjective_function</a></li>
>
> <li>See also <a href="http://mathworld.wolfram.com/Surjection.html">http://mathworld.wolfram.com/Surjection.html</a></p></li>
> </ul>
>
> Note that the <p> tags are placed incorrectly.  Is this a bug, or am I
> not using anchors properly?

It's a bug.  I think it's supposed to put the anchor just after the
<h4>.  Perhaps it should just add a `name="..."' element to the <h4>
tag instead -- that might be more elegant, and should achieve the same
effect.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS

_______________________________________________
emacs-wiki-discuss mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEfZ0/+1Ho2POo0xkRAqZRAJ9kaftNBbRu0rEwIl8HS5MJePwhwgCfVawa
twon/f/sVrkXRzGZPOQ4q40=
=aWHA
-----END PGP SIGNATURE-----