Changeset f9eea4c for functions.c


Ignore:
Timestamp:
Jan 7, 2008, 11:11:57 PM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
52594d1
Parents:
6d77f1f
Message:
Strip formmating characters when dumping to file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r47519e1b rf9eea4c  
    33733373  owl_view *v;
    33743374  FILE *file;
     3375  char *plaintext;
    33753376
    33763377  v=owl_global_get_current_view(&g);
     
    33953396  for (i=0; i<j; i++) {
    33963397    m=owl_view_get_element(v, i);
    3397     fputs(owl_message_get_text(m), file);
     3398    plaintext = owl_strip_format_chars(owl_message_get_text(m));
     3399    if (plaintext) {
     3400      fputs(plaintext, file);
     3401      owl_free(plaintext);
     3402    }
    33983403  }
    33993404  fclose(file);
Note: See TracChangeset for help on using the changeset viewer.