Skip to content

Commit

Permalink
added word_wrap() to the email messages on the notes and messages and…
Browse files Browse the repository at this point in the history
… description

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@300 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Jul 17, 2001
1 parent 34d899e commit e45e435
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core_email_API.php
Expand Up @@ -343,7 +343,7 @@ function email_build_bug_message( $p_bug_id ) {
$t_message .= "$s_email_last_modified: $v_last_updated\n";
$t_message .= "=======================================================================\n";
$t_message .= "$s_email_summary: $v_summary\n\n";
$t_message .= "$s_email_description: \n$v2_description\n";
$t_message .= "$s_email_description: \n".word_wrap( $v2_description )."\n";
$t_message .= "=======================================================================\n\n";

return $t_message;
Expand Down Expand Up @@ -381,9 +381,9 @@ function email_build_bugnote_message( $p_bug_id ) {
$t_last_modified = date( $g_complete_date_format, sql_to_unix_time( $t_last_modified ) );
$t_string = " ".$t_username." - ".$t_last_modified." ";
$t_message = $t_message."-----------------------------------------------------------------------\n";
$t_message = $t_message.$t_string."\n";
$t_message = $t_message.word_wrap( $t_string )."\n";
$t_message = $t_message."-----------------------------------------------------------------------\n";
$t_message = $t_message.$t_note."\n\n";
$t_message = $t_message.word_wrap( $t_note )."\n\n";
}

return $t_message;
Expand Down
2 changes: 1 addition & 1 deletion core_print_API.php
Expand Up @@ -769,7 +769,7 @@ function str_pd( $p_string, $p_pad, $p_length ) {
* Copyright 1999 Dominic J. Eidson, use as you wish, but give credit
* where credit due.
*/
function word_wrap ($string, $cols = 80, $prefix = "") {
function word_wrap ($string, $cols = 72, $prefix = "") {

$t_lines = split( "\n", $string);
$outlines = "";
Expand Down

0 comments on commit e45e435

Please sign in to comment.