Permalink
Browse files

Strip line wrap from plain-text for all incoming emails.

This will make sure posted items will look okay on the site without unnecessary line breaks all over the place.  (Note: Github doesn't strip line breaks when people reply via email.  Maybe we shouldn't either?)

This is experimental and might be commented out before public release.
  • Loading branch information...
1 parent 2dd7ddc commit 8709f85a51d9b572ba60ae2bdcf4ff7dcdb052d0 @r-a-y committed Jul 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 includes/bp-rbe-hooks.php
@@ -26,8 +26,8 @@
add_filter( 'bp_rbe_parse_email_body_reply', 'bp_rbe_remove_eol_char', 1 );
add_filter( 'bp_rbe_parse_email_body_reply', 'bp_rbe_remove_email_client_signature' );
- // email new item parsing
- add_filter( 'bp_rbe_parse_email_body_new', 'bp_rbe_remove_line_wrap_from_plaintext', 10, 2 );
+ // email body parsing
+ add_filter( 'bp_rbe_parse_email_body', 'bp_rbe_remove_line_wrap_from_plaintext', 10, 2 );
// email inbox parsing
/**

0 comments on commit 8709f85

Please sign in to comment.