[Pmwiki-users] Maybe a pmwiki bug?
    John Rankin 
    john.rankin
       
    Sun Aug 22 22:08:36 CDT 2004
    
    
  
I wanted to append a small icon after links to pages outside the wiki. The script avoids inserting the icon on links that use images and ThisPage: etc, but I have a strange problem. Any help or ideas would be much appreciated.
The code uses a small graphic icon:
$UrlLinkFmt = 
    "<a class='url' href='\$Url'>\$LinkText" .
    "<sup><img src='$PubDirUrl/images/offsite.png' border='0' /></sup></a>";
This works fine except when the link is at the end of a line.
So this works:
    See http://www.pmwiki.org/ for more information.
But this doesn't:
    For more information, see http://www.pmwiki.org/
The HTML has the <a href=...><sup>...</sup> at the start of the line, followed by the line's text, as if I had written
    http://www.pmwiki.org/ For more information, see
I get the same result with the icon before the <a> reference.
But if I change it to use a textual icon:
$UrlLinkFmt = 
    "<a class='url' href='\$Url'>\$LinkText" .
    "<sup>w</sup></a>"; 
it works correctly.
-- 
JR
--
John Rankin
    
    
More information about the pmwiki-users
mailing list