[Pmwiki-users] non broken strings
Larry Baltz
larry+pmwiki
Fri Sep 17 08:19:42 CDT 2004
Thanks Patrick.
To some extent my question exposes my ignorance of CSS (didn't know
there was a "white-space: nowrap" directive). In many cases I can
probably use this in the style sheet/template to avoid having to use
specific mark-up in the first place.
Larry
--On 9/17/04 8:02 AM -0600 Patrick R. Michaud writes:
> 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 also throw the flag for
>> spacing wiki words and would like a way to prevent breaks there
>> (can't use character entities inside a link label from what I can
>> tell...).
>>
>> 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?).
>
> Suggestion #1: How about a WikiStyle? Add the following to your
> config.php:
>
> $WikiStyleTags['white-space'] =
> array('style' => 'white-space:$value; ');
> $WikiStyle['nowrap']['white-space'] = 'nowrap';
>
> Then you can do %nowrap%This text is not to be broken for line
> wrapping.%%
>
> I've now added this in the cookbook at
> http://www.pmwiki.org/wiki/Cookbook/NoWrap .
>
> Pm
>
-- End message from Patrick R. Michaud --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 266 bytes
Desc: not available
Url : /pipermail/pmwiki-users_pmichaud.com/attachments/20040917/368bae64/attachment.bin
More information about the pmwiki-users
mailing list