1. Arne Babenhauserheide
  2. TextRPG


Arne Babenhauserheide  committed d760395

Blank lines are now simply blank in textRPG (no longer replaced by '...').

  • Participants
  • Parent commits 1cfb5a1
  • Branches default

Comments (0)

Files changed (2)

File lib/textrpg.py

View file
     def story(self, data=None, *args, **kwds): 
         """Tell a part of the story.
-        Overridden to show "..." instead of blank lines. """
+        Overridden to show "..." instead of blank lines (override commented out). """
         if data is not None: 
             data = _(data)
             for i in data.split("\n"): 
-                if i.rstrip() == "": 
-                    self.diag("...", localize=False)
-                else: 
+                #if i.rstrip() == "": 
+                #    self.diag("...", localize=False)
+                #else: 
                     self.diag(i, localize=False)

File ministory.py

View file
 # won: If we won
 # Diff: By how much we won or lost (always positive). 
-story("...Press enter to read on...")
+story("...Press enter to read the next line...")
 Where the sun doesn't shine,