diff options
Diffstat (limited to 'pith/string.c')
-rw-r--r-- | pith/string.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pith/string.c b/pith/string.c index 9bd91d6a..c662d6e5 100644 --- a/pith/string.c +++ b/pith/string.c @@ -185,6 +185,18 @@ removing_leading_white_space(char *string) } } +/* replace_embedded_tabs_by_space + replace any tab by only one space, when we do not want to see them + in the from or subject field. + */ +void +replace_tabs_by_space(char *orig) +{ + char *s; + + for(s = orig; s != NULL && *s != '\0' ; s++) + if(*s == '\t') *s = ' '; +} /*---------------------------------------------------------------------- |