changeset 81:5508000aceaf

Fixed bug in the text splitting code of ExamineAction.
author KarstenBock@gmx.net
date Thu, 08 Sep 2011 18:56:10 +0200
parents 84d03dc70904
children 7cb53edfb95f
files src/parpg/objects/action.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/objects/action.py	Thu Sep 08 18:36:40 2011 +0200
+++ b/src/parpg/objects/action.py	Thu Sep 08 18:56:10 2011 +0200
@@ -208,7 +208,7 @@
         logger.debug(action_text)
         #this code will cut the line up into smaller lines that will be displayed
         place = 25
-        while place <= len(action_text):
+        while place < len(action_text):
             if action_text[place] == ' ':
                 action_text = action_text[:place] +'\n'+action_text[place:]
                 place += 26 #plus 1 character to offset the new line