for y, line in self.map.lines():
write(f, 'MAP_LINE %5s %s' % (y, quote(line)))
for yx in self.annotations:
write(f, 'ANNOTATE %s %s' % (yx, quote(self.annotations[yx])))
for yx in self.portals:
for y, line in self.map.lines():
write(f, 'MAP_LINE %5s %s' % (y, quote(line)))
for yx in self.annotations:
write(f, 'ANNOTATE %s %s' % (yx, quote(self.annotations[yx])))
for yx in self.portals: