[Zope] structured text inner/named link still do not work

Robert Rottermann robert@redcor.ch
Mon, 29 Oct 2001 17:47:58 +0100


Andreas,

The output I get generated is very different.
This is hat I am doing:

- I have a dtml-method called text. It's content is the content of
InnerLinks.stx.
- I have a second dtml-method that calls it like so:
    <dtml-var text fmt="structured-text">

This is the output it generated:
<h3>This is the InnerLinkTest</h3>
<p>  see also <a href="#1"><a href="#1">[1]</a></a> and <a href="#2"><a
href="#2">[2]</a></a></p>
<p>  .. <a href="#1"><a href="#1">[1]</a></a> "Zope Book" by Amos Lattmeier
and Michel Pelletier</p>
<p>  .. <a href="#2"><a href="#2">[2]</a></a> "Python Book" by Guido van
Rossum</p>

Which is very! different to what you did send me.

Seems that I am doing something completely wrong.

Robert



----- Original Message -----
From: "Andreas Jung" <andreas@zope.com>
To: "Robert Rottermann" <robert@redcor.ch>
Cc: <zope@zope.org>
Sent: Monday, October 29, 2001 3:14 PM
Subject: Re: [Zope] structured text inner/named link still do not work


> On Mon, 2001-10-29 at 09:06, Robert Rottermann wrote:
> > Hi,
> >
> > I checked out structured text from cvs.
> > First, there is an error I believe
> > line 908 of  DocumentClass.py should read
> > return (StructuredTextInnerLink(s[start2+1:end2-1],start2,end2)
> > (note the : in  [start2+1:end2-1])
> >
> > My real problem however is, that doc_inner_link never sees the dots that
> > mark the beginning of a named link.
> > (which is .. [xxx]) and therefore newer inserts a named link.
>
> I can't confirm your problem. The InnerLinks.stx file
> from the STXNG regression suite is the following:
>
>
>     This is the InnerLinkTest
>
>
>       see also [1] and [2]
>
>
>       .. [1] "Zope Book" by Amos Lattmeier and Michel Pelletier
>
>       .. [2] "Python Book" by Guido van Rossum
>
>
> The generated HTML looks fine and correct:
>
>     <html>
>     <head>
>     <title>This is the InnerLinkTest</title>
>     </head>
>     <body>
>     <h1>This is the InnerLinkTest</h1>
>     <p>  see also <a href="#1">[1]</a> and <a href="#2">[2]</a></p>
>     <p>  <a name="1">[1]</a> "Zope Book" by Amos Lattmeier and Michel
Pelletier</p>
>     <p>  <a name="2">[2]</a> "Python Book" by Guido van Rossum</p>
>     </body>
>     </html>
>
> Andreas
>
>
>
>
>