[pmwiki-users] %newwin%

potax flan potaxpotax at gmail.com
Mon Oct 2 13:06:58 CDT 2006


aaarrrrgh
it was really the \\s that were messing up the whole thing,
i got rid of them and put (:linebreaks:) on top instead.
thank your all.
p


On 10/2/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 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