Subject: addressbook-formats

From: Scott Leibrand <[email-masked]>
Date: Wed, 28 Jun 2000 21:13:01 -0700 (PDT)

I've discovered a rather strange behavior (in 4.21 and 4.30 Alpha) when
using the addressbook-formats field to specify what is displayed when you
view your address book.  According to the help text:

To get the default behavior you could list

              addressbook-formats=NICKNAME FULLNAME ADDRESS

However, if I copy and paste (using Tera Term) that string
(NICKNAME FULLNAME ADDRESS) into the addressbook-formats= field, it only
displays the nickname.  If I instead type them all out, it displays fine.
I spaces are apparently the culprit.  When I copy and paste them into Word
and put it in view-everything mode, it identifies them as non-breaking
spaces.  But if I go into the help screen and resize my screen to force
that line to wrap, it wraps like this:

addressbook-formats=NICKNAME FULLNAME
ADDRESS

So apparently the non-breaking spaces don't do any good.  Is there any
reason to keep them there?

--
Scott Leibrand
[email-masked]            (Yes, that is a valid address.)
http://students.washington.edu/leibrand
* RCW 19.190 notice: This email address is located in Washington State. *
* Unsolicited commercial email may be billed $500 per message.          *

---

From: Jacob Morzinski <[email-masked]>
Date: Thu, 29 Jun 2000 14:14:12 -0400 (EDT)

> displays the nickname.  If I instead type them all out, it displays fine.

This is probably because when you type, you use a space, as the
documentation (two lines lower) says you should.  When you
copy-and-paste, your terminal program grabs the non-breaking-spaces
that the html-help authors put between the words and pine doesn't
know how to interpret them.

I don't know whether to argue that the html help is wrong in
using "&nbsp;" where it means " ", or to argue that pine's html
renderer is wrong to output a 0xA0 character instead of 0x20 when
it sees "&nbsp".  I lean towards arguing that the latter is wrong.
But it is the combination of these factors which prevents people
from copy-and-pasting code from the on-line help.

Sincerely,
 Jacob Morzinski                                [email-masked]

===  Excerpt from pine.hlp:  ==============================================
So, for example, to get the default behavior you could list

<P>
<CENTER>addressbook-formats=NICKNAME&nbsp;FULLNAME&nbsp;ADDRESS</CENTER>

<P>
(You can also use the token DEFAULT to get the default behavior for
an address book format.)

<P>
The tokens are separated by spaces.