Use MSG_LINEBREAK instead of LINEBREAK.

This commit is contained in:
mscott%netscape.com 1999-06-22 18:55:32 +00:00
parent bdfc68dc2f
commit fce7015fb4
3 changed files with 10 additions and 10 deletions

View File

@ -539,7 +539,7 @@ nsresult nsMsgFilterList::WriteIntAttr(nsMsgFilterFileAttrib attrib, int value)
*m_fileStream << attribStr;
*m_fileStream << "=\"";
*m_fileStream << value;
*m_fileStream << "\"" LINEBREAK;
*m_fileStream << "\"" MSG_LINEBREAK;
}
// XP_FilePrintf(fid, "%s=\"%d\"%s", attribStr, value, LINEBREAK);
return NS_OK;
@ -560,7 +560,7 @@ nsresult nsMsgFilterList::WriteStrAttr(nsMsgFilterFileAttrib attrib, nsString2 &
*m_fileStream << attribStr;
*m_fileStream << "=\"";
*m_fileStream << ((escapedStr) ? escapedStr : str);
*m_fileStream << "\"" LINEBREAK;
*m_fileStream << "\"" MSG_LINEBREAK;
// XP_FilePrintf(fid, "%s=\"%s\"%s", attribStr, (escapedStr) ? escapedStr : str, LINEBREAK);
}
PR_FREEIF(escapedStr);

View File

@ -252,20 +252,20 @@ msg_convert_and_send_buffer(char* buf, PRUint32 length, PRBool convert_newlines_
if (!convert_newlines_p)
{
}
#if (LINEBREAK_LEN == 1)
#if (MSG_LINEBREAK_LEN == 1)
else if ((newline - buf) >= 2 &&
newline[-2] == CR &&
newline[-1] == LF)
{
/* CRLF -> CR or LF */
buf [length - 2] = LINEBREAK[0];
buf [length - 2] = MSG_LINEBREAK[0];
length--;
}
else if (newline > buf + 1 &&
newline[-1] != LINEBREAK[0])
newline[-1] != MSG_LINEBREAK[0])
{
/* CR -> LF or LF -> CR */
buf [length - 1] = LINEBREAK[0];
buf [length - 1] = MSG_LINEBREAK[0];
}
#else
else if (((newline - buf) >= 2 && newline[-2] != CR) ||
@ -273,8 +273,8 @@ msg_convert_and_send_buffer(char* buf, PRUint32 length, PRBool convert_newlines_
{
/* LF -> CRLF or CR -> CRLF */
length++;
buf[length - 2] = LINEBREAK[0];
buf[length - 1] = LINEBREAK[1];
buf[length - 2] = MSG_LINEBREAK[0];
buf[length - 1] = MSG_LINEBREAK[1];
}
#endif
@ -587,7 +587,7 @@ nsNNTPHost::RememberLine(char* line)
return NS_ERROR_OUT_OF_MEMORY;
PL_strcpy(new_data, line);
PL_strcat(new_data, LINEBREAK);
PL_strcat(new_data, MSG_LINEBREAK);
m_optionLines = new_data;

View File

@ -1370,7 +1370,7 @@ nsMsgNewsFolder::RememberLine(char* line)
}
if (!new_data) return -1; // NS_ERROR_OUT_OF_MEMORY;
PL_strcpy(new_data, line);
PL_strcat(new_data, LINEBREAK);
PL_strcat(new_data, MSG_LINEBREAK);
mOptionLines = new_data;