[pmwiki-users] %newwin%

Patrick R. Michaud pmichaud at pobox.com
Mon Oct 2 09:26:24 CDT 2006

On Mon, Oct 02, 2006 at 09:08:54AM -0500, Patrick R. Michaud wrote:
> On Mon, Oct 02, 2006 at 02:47:22PM +0200, potax flan wrote:
> > else, is there some markup to tell %newwin% to affect only the link
> > after it, not the one before it?
> This is the default behavior of %newwin% -- it only affects links
> between the %newwin% and the end of the markup line or the next
> wikistyle.  (Try it on pmwiki.org to confirm this.)
> So, there must be something else going on that is causing the
> behavior you're seeing.  

Oh, I see what's happening (having now looked at the site).  
You have markup that looks like:

    '''XYZ'''  (%newwin%[[http://www.example.com/]]) \\
    [['''Whatever''']] ([[http://www.whatever.com/]]) \\

Those "\\" at the end of each line make PmWiki join the lines
together into a single long line, thus it's the %newwin% on the
previous "line" that is causing the link to open in a new window.

In general it's not a good idea to put "\\" at the end of lots of
lines; long sequences of lines with "\\" can really slow down
the page rendering.  Far better is to use:

    '''XYZ'''  (%newwin%[[http://www.example.com/]])

    [['''Whatever''']] (%newwin%[[http://www.whatever.com/]])
    [['''Potpourri''']] (%newwin%[[http://www.example.com/]])


More information about the pmwiki-users mailing list