On June 11, [EMAIL PROTECTED] said:
> Alex Schroeder <[EMAIL PROTECTED]> writes:
> 
> > What is the problem, exactly?  Seeing this I am not sure wether I
> > should upgrade.  I have many people in my .bbdb without addresses (and
> > I have never noticed any significant bugs in address display).
> > Curious minds want to know.  :)
> 
> Ah... sorry for not checking it.  Now I see that when I enter an
> address location without any data, the trailing empty line is "eaten"
> -- the address doesn't even contain a newline, eventhough it should.
> 
> Alex.

Yep, that's the one. I was hoping to make it simply discard the
address if you entered all blanks, but that's actually going to
require an amount of hacking of the existing code and it was too big a
change to check in along with the stuff I was already working on.

Ideally the address editing function should return a true or false
value (for "valid/invalid" data) and the calling code should handle
that appropriately - by which I mean if you're editing an address, it
remains unchanged, and if you're adding an address, it discards
whatever you were trying to add. This would then allow you to write a
smart editing function for your own locale that, for example, doesn't
allow you to enter addresses with invalid zip/postal codes or
whatever. Likewise it could be applied to phones, or whatever else I
guess.

Cheers,
Waider.
-- 
That actually holds as a general rule. French folk will often help out
in fluent english after you've stuttered for ten minutes, telling them
you are the son of a fermented potato and would like to wash your
wife's chilblains in some fresh orange juice.

_______________________________________________
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to