[798] in BarnOwl Developers
[D-O-H] r800 - branches/barnowl_unicode/owl
daemon@ATHENA.MIT.EDU (asedeno@MIT.EDU)
Thu Oct 29 18:09:50 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: asedeno@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 7 Jan 2008 23:11:58 -0500 (EST)
Author: asedeno
Date: 2008-01-07 23:11:57 -0500 (Mon, 07 Jan 2008)
New Revision: 800
Modified:
branches/barnowl_unicode/owl/functions.c
Log:
unicode/glib branch
Strip formmating characters when dumping to file.
Modified: branches/barnowl_unicode/owl/functions.c
===================================================================
--- branches/barnowl_unicode/owl/functions.c 2008-01-08 01:13:17 UTC (rev 799)
+++ branches/barnowl_unicode/owl/functions.c 2008-01-08 04:11:57 UTC (rev 800)
@@ -3372,6 +3372,7 @@
owl_message *m;
owl_view *v;
FILE *file;
+ char *plaintext;
v=owl_global_get_current_view(&g);
@@ -3394,7 +3395,11 @@
j=owl_view_get_size(v);
for (i=0; i<j; i++) {
m=owl_view_get_element(v, i);
- fputs(owl_message_get_text(m), file);
+ plaintext = owl_strip_format_chars(owl_message_get_text(m));
+ if (plaintext) {
+ fputs(plaintext, file);
+ owl_free(plaintext);
+ }
}
fclose(file);
owl_function_makemsg("Messages dumped to %s", filename);