From: Dave C. <da...@da...> - 2003-01-12 15:36:22
|
Anthony, Thanks for your email. I've forwarded it to the developers' mailing list so that someone can apply your fix to our code. Dave... On Sat, Jan 04, 2003 at 07:05:13PM -0000, Anthony Pringle (apr...@ch...) wrote: > Hi Dave > > I've been using your FormMail script for some time, yesterday I > downloaded and installed the latest version. I also enabled the > $wrap_text = 1 and $wrap_style = 1 to indent my messages. > > I found that the script indented the message by the length of the > "field name" but wasn't adding the extra two characters to make the > line-up complete. Not knowing anything about Perl, I studied a couple > of online tutorials - made an inspired guess - then modified a line in > your code from > > $subs_indent = ' ' x length($field_name); > > to > > $subs_indent = ' ' x (length($field_name) + 2); > > Now it seems to work properly and I feel extraordinarily pleased with > myself :-), so I thought I'd let you know. > > Regards > > Anthony Pringle > > > $wrap_style - If $wrap_text is set to 1 then if this is set to > 1 then > the text will be wrapped in such a way that the > left > margin of the text is lined up with the > beginning of the > text after the description of the field - that > is to > say it is indented by the length of the field > name > plus 2. If it is set to 2 then the subsequent > lines > of the text will not be indented at all and will > be > flush with the start of the lines. The choice > of style > is really a matter of taste although you might > find > that style 1 does not work particularly well if > your > e-mail client uses a proportional font where the > spaces > of the indent might be smaller than the > characters in > the field name. > -- It was long ago and it was far away And it was so much better that it is today |