Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv7741/src/modules

Modified Files:
        BareBonesEditor.cpp 
Log Message:
Hotfixed CRLF<->LF conversion

Index: BareBonesEditor.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/BareBonesEditor.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -u -2 -r1.8 -r1.9
--- BareBonesEditor.cpp 1 Sep 2003 16:35:07 -0000       1.8
+++ BareBonesEditor.cpp 13 Sep 2003 14:32:38 -0000      1.9
@@ -952,4 +952,7 @@
       m_textControl->Clear();
    m_textControl->Freeze();
+   // Translate CRLF to LF. Internal strings should have only LF, but
+   // obviously they don't. All strings returned from c-client have CRLF
+   // and not all code translates it to LF, so we have to do it here.
    m_textControl->WriteText(strutil_enforceLF(text));
    m_textControl->Thaw();
@@ -963,4 +966,8 @@
 {
    m_getNextAttachement = 0;
+   // Translate LF to CRLF. All internal strings should have only LF, but
+   // due to long bug tradition, many strings that contain messages have
+   // CRLF newlines. They are passed to c-client, which expects CRLF, so
+   // think twice before changing it.
    return new EditorContentPart(strutil_enforceCRLF(
       m_textControl->GetValue()));



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to