Przeglądaj źródła

Convert ~r~n to ~n when reading Clipboard.

Mark Sibly 9 lat temu
rodzic
commit
a6c822f5f8
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      modules/mojo/app/app.monkey2

+ 4 - 0
modules/mojo/app/app.monkey2

@@ -108,6 +108,10 @@ Class AppInstance
 		Local p:=SDL_GetClipboardText()
 		
 		Local str:=String.FromUtf8String( p )
+
+		'fix windows eols		
+		str=str.Replace( "~r~n","~n" )
+		str=str.Replace( "~r","~n" )		
 		
 		SDL_free( p )