On Mon, 1 Sep 2003 22:29:04 +0200 (Romance Daylight Time) Vadim Zeitlin

<[EMAIL PROTECTED]> wrote:



> On Mon, 01 Sep 2003 08:35:33 -0700 Robert Vazan

> <[EMAIL PROTECTED]> wrote:

> 

> RV> +/** Enforces LF '\n' newline convention.

> RV> +

> RV> +    @param in string to copy

> RV> +    @return the UNIXified string

> RV> +*/

> RV> +String

> RV> +strutil_enforceLF(String const &in)

> 

>  I think this should be implemented by calling wxTextFile::Translate(,

> wxTextFileType_Unix).



It's undocumented in my copy of wxWindows 2.4.



> OTOH I don't know why is it needed at all? All

> strings inside the program should use '\n' only, doing anything else is a

> recipe for disaster.



Yes, but all strings aren't really LF-only. There has been this problem

that reopened messages had extra CR. It was visible with layout editor too.

In any case, wxTextCtrl doesn't swallow CR and this extra check won't harm.





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

Reply via email to