[Pmwiki-users] non broken strings

Patrick R. Michaud pmichaud
Thu Oct 21 14:45:51 CDT 2004


[I'm cleaning up the mailbox of emails that have gone unanswered...  --Pm]

On Fri, Sep 17, 2004 at 10:47:47AM +0200, Larry Baltz wrote:
> Just wondering if anyone else has needed to create strings that aren't 
> broken for line wrapping.  I've used the " " mark-up, but that's 
> pretty intrusive (i.e. hard to read the string when the character 
> entities are embedded) and gets to be a drag to type when you have 
> multiple spaces in the string.  

I often use ALT+0160 on my keyboard (under WinXP) to generate a non-breaking
space.  But creating a markup for an entire line would be useful...

> Any suggestions on reasonable mark-up for enclosing such strings? 
> Maybe something like ``I don't want this line wrapped`` (i.e. use 
> double backquotes).  Is there anything that would be more consistent 
> with existing mark-up (or maybe double backquote is already used?).

Double-backquote isn't already used and makes sense for this; OTOH, 
this sounds more like something that could go in a WikiStyle.  

In PmWiki 2:

   $WikiStyleCSS[] = 'white-space';
   $WikiStyle['nowrap']['white-space']='nowrap';

and then in the markup:

   This text can wrap %nowrap% but anything here cannot be wrapped %% and
   now the browser is allowed to wrap text again.

In PmWiki 1, to do the same thing:

   $WikiStyleTags['white-space']['style'] = 'white-space:$value; ';
   $WikiStyle['nowrap']['white-space'] = 'nowrap';

Pm



More information about the pmwiki-users mailing list