Skip to content

Commit

Permalink
Strip line wrap from plain-text for all incoming emails.
Browse files Browse the repository at this point in the history
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
r-a-y committed Jul 27, 2012
1 parent 2dd7ddc commit 8709f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/bp-rbe-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
/**
Expand Down

0 comments on commit 8709f85

Please sign in to comment.