dabo Commit
Revision 4370
Date: 2008-08-06 14:57:50 -0700 (Wed, 06 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4370
Changed:
U trunk/dabo/ui/uiwx/dEditor.py
Log:
I was setting the EOLMode on the editor but the setDefaults method would
override my settings. This fixes the problem.
Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py 2008-08-06 21:45:02 UTC (rev 4369)
+++ trunk/dabo/ui/uiwx/dEditor.py 2008-08-06 21:57:50 UTC (rev 4370)
@@ -675,11 +675,12 @@
self.SetViewEOL(self.ShowEOL)
self.SetUseAntiAliasing(self.UseAntiAliasing)
- ## Seems that eolmode is CRLF on Mac by default... explicitly
set it!
- if wx.Platform == "__WXMSW__":
- self.EOLMode = "CRLF"
- else:
- self.EOLMode = "LF"
+ ## Seems that eolmode is CRLF on Mac by default... explicitly
set it if not set by user!
+ if not self.EOLMode:
+ if wx.Platform == "__WXMSW__":
+ self.EOLMode = "CRLF"
+ else:
+ self.EOLMode = "LF"
if self.HiliteCharsBeyondLimit:
self.SetEdgeMode(stc.STC_EDGE_BACKGROUND)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]