* Trim white space from the field names - this removes for example an extra
space in front of *every* attribute. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42809 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0c7f804cec
commit
ba91e5bbcd
@ -1453,11 +1453,13 @@ extract_from_header(const BString& header, const BString& field,
|
||||
size_t length = rfc2047_to_utf8(&buffer, &bufferSize, bufferSize);
|
||||
target.UnlockBuffer(length);
|
||||
|
||||
trim_white_space(target);
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
_EXPORT void
|
||||
void
|
||||
extract_address(BString &address)
|
||||
{
|
||||
const char *string = address.String();
|
||||
@ -1504,8 +1506,9 @@ extract_address(BString &address)
|
||||
}
|
||||
|
||||
|
||||
_EXPORT void
|
||||
get_address_list(BList &list, const char *string, void (*cleanupFunc)(BString &))
|
||||
void
|
||||
get_address_list(BList &list, const char *string,
|
||||
void (*cleanupFunc)(BString &))
|
||||
{
|
||||
if (string == NULL || !string[0])
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user