Menu

#48 StructuredTextNG converter missing links

defect
closed-wont-fix
5
2002-08-24
2002-01-14
Anonymous
No

I've encountered two problems with the StructuredTextNG
parser.

(1) According to the StructuredTextNG rules:

---
* Text encloded by double quotes followed by a colon,
a URL, and concluded by punctuation plus white space,
or just white space, is treated as a hyper link.

For example, "Zope":http://www.zope.org/ is interpreted
as Zope
---

While this works fine in general, it appears the
certain characters inside the quotes break this
feature. For example:

"<lars@larsshack.org>":mailto:lars@larsshack.org

Shows up verbatim in the HTML output, rather than
getting converted into a mailto link. In fact, it
appears that putting a variety of punctuation marks
inside the double quotes will cause the converter to
incorrectly interpret this text ('!' and ':' also
result in a failure, while '#' works just fine).

(2) According to the StructuredTextNG rules:

---
* Text enclosed by double quotes followed by a comma,
one or more spaces, an absolute URL and concluded by
punctuation plus white space, or just white space, is
treated as a hyper link.

For example: "mail me", mailto:amos@digicool.com is
interpreted as mail me
---

This means that something like:

"Lars Kellogg-Stedman", mailto:lars@larsshack.org

Ought to get converted into a mailto: link. It doesn't.

This bugs occur in happydoc version 2.0.

Discussion

  • Doug Hellmann

    Doug Hellmann - 2002-08-24

    Logged In: YES
    user_id=34486

    The problem is that the rules don't sufficiently describe
    "text". Punctuation characters are apparently not counted
    as text. It is time to update the ST implementation used by
    HappyDoc, but as it is just a copy of the code from the Zope
    CVS tree, this problem may still hang around.

     
  • Doug Hellmann

    Doug Hellmann - 2002-08-24
    • status: open --> closed-wont-fix
     

Log in to post a comment.