From: <lyn...@us...> - 2008-09-02 17:13:53
|
Revision: 5249 http://gemrb.svn.sourceforge.net/gemrb/?rev=5249&view=rev Author: lynxlupodian Date: 2008-09-02 17:13:56 +0000 (Tue, 02 Sep 2008) Log Message: ----------- bg2: use split(x,1) instead of partition to stay compatible with python 2.4 Modified Paths: -------------- gemrb/trunk/gemrb/GUIScripts/bg2/GUIJRNL.py Modified: gemrb/trunk/gemrb/GUIScripts/bg2/GUIJRNL.py =================================================================== --- gemrb/trunk/gemrb/GUIScripts/bg2/GUIJRNL.py 2008-09-02 16:35:34 UTC (rev 5248) +++ gemrb/trunk/gemrb/GUIScripts/bg2/GUIJRNL.py 2008-09-02 17:13:56 UTC (rev 5249) @@ -182,9 +182,9 @@ # each journal entry consists of the title and description # but the game displays the entry date between the two - je2 = GemRB.GetString(je['Text']).partition("\n") - JournalTitle = "[color=d00000]" + je2[0] + "[/color]" + je2[1] - JournalText = je2[2] + je2 = GemRB.GetString(je['Text']).split("\n",1) + JournalTitle = "[color=d00000]" + je2[0] + "[/color]" + "\n" + JournalText = je2[1] GemRB.TextAreaAppend (Window, Text, JournalTitle + GemRB.GetString(15980), 3*i) GemRB.TextAreaAppend (Window, Text, JournalText, 3*i+1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |