[pmwiki-users] %newwin%
Patrick R. Michaud
pmichaud at pobox.com
Mon Oct 2 09:54:00 CDT 2006
On Mon, Oct 02, 2006 at 10:43:52AM -0400, Henrik Bechmann wrote:
> Or as an exception:
>
> '''XYZ''' (%newwin%[[http://www.example.com/]]%%) \\
> \\
> [+ABC:+]\\
> [['''Whatever''']] ([[http://www.whatever.com/]]) \\
>
> with %% after example.com, yes?
Yes, that works, as the %% closes off the %newwin% style.
Pm
> Patrick R. Michaud wrote:
> >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/]]) \\
> > \\
> > [+ABC:+]\\
> > [['''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:
> >
> > (:linebreaks:)
> > '''XYZ''' (%newwin%[[http://www.example.com/]])
> >
> > [+ABC:+]
> > [['''Whatever''']] (%newwin%[[http://www.whatever.com/]])
> > [['''Potpourri''']] (%newwin%[[http://www.example.com/]])
> >
> >Pm
> >
> >_______________________________________________
> >pmwiki-users mailing list
> >pmwiki-users at pmichaud.com
> >http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >
> >
>
> --
>
> Henrik Bechmann
> www.osscommons.ca
> www.bechmannsoftware.com
> Webmaster, www.dufferinpark.ca
>
>
More information about the pmwiki-users
mailing list