home · contact · privacy
More quote fixing.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 4 Nov 2020 04:34:13 +0000 (05:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 4 Nov 2020 04:34:13 +0000 (05:34 +0100)
new2/plomrogue/game.py

index c89d2c6cfddf80c3d30bca0abbe9dbabaa9e1d16..5e33bc49cedc7a408fdb9f5a37415c5bf85346c9 100755 (executable)
@@ -186,7 +186,7 @@ class Game(GameBase):
           for yx in self.annotations:
               write(f, 'ANNOTATE %s %s' % (yx, quote(self.annotations[yx])))
           for yx in self.portals:
           for yx in self.annotations:
               write(f, 'ANNOTATE %s %s' % (yx, quote(self.annotations[yx])))
           for yx in self.portals:
-              write(f, 'PORTAL %s %s' % (yx, self.portals[yx]))
+              write(f, 'PORTAL %s %s' % (yx, quote(self.portals[yx])))
 
     def new_world(self, size):
         self.map_geometry = MapGeometrySquare(YX(size.y, size.x))
 
     def new_world(self, size):
         self.map_geometry = MapGeometrySquare(YX(size.y, size.x))