[Pmwiki-users] Maybe a pmwiki bug?

John Rankin john.rankin
Mon Aug 23 17:24:15 CDT 2004


On Tuesday, 24 August 2004 1:39 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>On Mon, Aug 23, 2004 at 04:08:19PM +1200, John Rankin wrote:
>> 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.
>> [...]
>Yes, it's arguably a bug, or at least a misfeature.  I've corrected it so 
>that it now looks for the "img>" sentinel before moving the link, and 
>released this new version as pmwiki-1.0.7.

Excellent, thank you.
>
>Thus far in PmWiki 2 I've been thinking to eliminate the automatic
>float-left/right of images from the markup so that floating images would
>have to be explicitly tagged as such...any comments or
>suggestions about this?

I find the automatic floating natural and convenient, so would like 
to see it kept if possible.

Perhaps an alternative approach could be to allow an author to
override the default floating behaviour. 

>
>Pm
>


-- 
JR
--
John Rankin





More information about the pmwiki-users mailing list