> From [EMAIL PROTECTED] Mon Jul 31 19:03:47 2000
> Date: Mon, 31 Jul 2000 21:05:31 -0400 (EDT)
> From: Lars Kellogg-Stedman <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: IFHP: common filters and '+='
>
> > I have a better solution: please apply the following patch. This treats the
> > ] and [ correctly.
>
> I won't have the chance to fiddle with this until the weekend, but I wanted
> to thank you in advance for tweaking the code this way. Yay, Patrick! :)
>
> Here's another syntax question...
>
> A portion of my ifhp.conf files looks like this:
>
> ps_media = %% Set media type
> << /MediaType (\%s{media}) /Policies << /MediaType 2 >> >> setpagedevice
>
> ps_letter = [ media=Letter ]
>
> This works just fine. However, for one of the other media types, I want
> to do this:
>
> ps_cardstock = [ media=Card Stock ]
ps_cardstock = [ media=Card\040Stock ]
This appears to work correctly.
>
> That white space (in "Card Stock") is driving me batty, and I haven't
> figured out how to quote it appropriately. Quotation marks don't work:
>
> ps_cardstock = [ media="Card Stock" ]
>
> Nor do backslashes:
>
> ps_cardstock = [ media=Card\ Stock ]
>
> Nor does this ugly hack:
>
> cardstock = Card Stock
> ps_cardstock = [ media=\%s{cardstock} ]
>
> (In this last case, the \%s{cardstock} doesn't even get expanded.) I call
> this an "ugly hack" because even if it worked, it wouldn't really be a
> solution -- there are several places in my ifhp.conf where I want to use a
> similar construct.
>
> Is there any way to accomplish this? If there isn't, my vote would be to
> make backslash-escaped whitespace work the way I'm trying to use it above.
>
> Thanks for your help,
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.astart.com)
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------