Hey Gerald --

I just noticed that you had in fact made an optSaveSpaces in 1.2b10.
Thanks!  I had tried to access your CVS stuff via the two methods you
mentioned, couldn't get it working, and more or less gave up until
I could figure out what I was doing wrong... didn't want to bug you
until I knew for sure where the problem was.

You'll be (less than) pleased to know I managed to SEGV HTML::Embperl
today (in normal usage, not mod_perl).  It's in cleanup, and I'm trying
to get the $HTML::Embperl::dbgShowCleanup variable to do what I think
it should so I can see what's happening.  No luck yet but... oh, it
runs fine when the script is run as a normal user, but when run under
BSDI as the same user but with a forced 'login class' (with any luck
you've never had to deal with _that_ little nightmare...), it SEGV's!
Amazing.

More later...

        Gary

On Thu, 17 Jun 1999, Gerald Richter wrote:
> Hi,
> 
> in epmain.c about line 764 is the following code:
> 
> 
>     /* skip trailing whitespaces */
>     while (isspace(*pAfterWS))
>         pAfterWS++ ;
> 
>     if (nType == '+' && pAfterWS > p)
>         pAfterWS-- ;
> 
> 
> if you delete these lines, whitespace shouldn't change. Let me know if it
> works and I make it an option in the next release
> 
> Gerald
> 
> 
> 
> ---
> Gerald Richter
> ECOS  Electronic Communication Services
> Internet - Faxabruf - Infodatenbanken
> 
> E-Mail:     [EMAIL PROTECTED]
> WWW:        http://www.ecos.de
> Tel:        +49-6133/925151
> Fax:        +49-6133/925152
> Faxabruf:   +49-6133/93910100
> 
> 
> > -----Original Message-----
> > From: Gary Shea [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 16, 1999 11:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: embperl & plain text
> >
> >
> > Hi, I've been using Embperl with excellent results for some time
> > now, but recently ran into something I haven't been able to figure
> > out.  I use Embperl in a system where it generates both web pages
> > and email messages in plain text.  The web pages work great.
> > Using it to format email messages is, I know, not exactly what
> > you had in mind (it's not HTML!), but my only alternative is
> > to go back to my home-brewed pre-Embperl code, which frankly isn't
> > as nice as Embperl, or to use ePerl, which I'm not that
> > excited about.
> >
> > My problem is that Embperl seems to play fast and loose as far
> > as removing and adding white space.  A page which is composed
> > of text, simple variable substitutions, and substitutions which
> > are the results of previous Embperl substitutions, shows almost
> > (I say almost 'cause it's a computer after all...) random
> > additions of leading and trailing white space, and seemingly
> > random subtractions of blank lines.  Does this seem possible?
> > I am pretty convinced it is really happening...
> >
> > I understand that an HTML-specific tool has no need to respect
> > white space, but I was hoping that it might be straightforward to get
> > Embperl to respect white space.
> >
> > Here's an example of a typical call to Embperl where the problem
> > shows up.
> >
> >     require HTML::Embperl;
> >
> >     my $line;
> >     HTML::Embperl::Execute ({
> >         'debug' => 0,
> >         'escmode' => 0,
> >         'inputfile' => $tpl,
> >         'options' =>
> >             HTML::Embperl::optDisableChdir ()
> >             | HTML::Embperl::optDisableEmbperlErrorPage ()
> >             | HTML::Embperl::optDisableFormData ()
> >             | HTML::Embperl::optDisableHtmlScan ()
> >             | HTML::Embperl::optRawInput (),
> >         'output' => \$line,
> >         'param' => $pairs,
> >     });
> >     $line =~ s/^\s*//;
> >     $line =~ s/\s*$//;
> >
> > The s/// stuff is there to get rid of random added leading/trailing
> > white space.  But the funniest part is that this exact same piece of code,
> > on a different template, will somehow remove ALL blank lines from
> > the code!  Except one.  Weird!
> >
> > I'm beginning to dig through the code now, but hints would be welcome...
> >
> > Thanks!
> >
> >     Gary
> >
> 
> 

-----------------------------------------------------------------
Gary Shea                                       [EMAIL PROTECTED]
Salt Lake City                      http://www.xmission.com/~shea

Reply via email to