Commits

Arne Babenhauserheide  committed 7095d7e

Added test case to catch a story() regression (story without linebreak at the end).

  • Participants
  • Parent commits 475f238

Comments (0)

Files changed (1)

File rpg_lib/anyrpg.py

         super(Story, self).__init__(*args, **kwds)
     
     def story(self, data=None, *args, **kwds):
-        """Tell a part of the story."""
+        """Tell a part of the story.
+
+            >>> story = Story()
+            >>> story.story("a", end_with_linebreak=False);story.story("b")
+            ab
+        
+        """
         if data is not None: 
             data = _(data)
 	    for line in data.splitlines():