TracZephyrPlugin: Escape @ as @@.
authorAnders Kaseorg <andersk@mit.edu>
Tue, 30 Jun 2009 20:27:29 +0000 (16:27 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Tue, 30 Jun 2009 20:27:29 +0000 (16:27 -0400)
(This will need to be moved if someone implements color support
later.)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
TracZephyrPlugin/ZephyrPlugin.py

index 5546bda0955c260c91382d3d873d9f67be5a0260..0f40125be8d2cf7190d6df13cfa346948d547574 100644 (file)
@@ -18,7 +18,7 @@ class ZephyrPlugin(Component):
                              ['-c', zclass,
                               '-i', 'trac-#%s' % id],
                              stdin=subprocess.PIPE)
-        p.stdin.write(message.encode('utf-8', 'replace'))
+        p.stdin.write(message.replace('@', '@@').encode('utf-8', 'replace'))
         p.stdin.close()
         p.wait()