From 819e80f033b447bf483a3b8c01433a7cecc18b16 Mon Sep 17 00:00:00 2001
From: Ole Laursen <olau@iola.dk>
Date: Tue, 11 Dec 2012 15:16:31 +0000
Subject: [PATCH] Fix quoting bug in AUTH48 links  - Legacy-Id: 5118

---
 ietf/sync/rfceditor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ietf/sync/rfceditor.py b/ietf/sync/rfceditor.py
index ed3415858..ccb7f9032 100644
--- a/ietf/sync/rfceditor.py
+++ b/ietf/sync/rfceditor.py
@@ -167,7 +167,7 @@ def update_drafts_from_queue(drafts):
             e = add_state_change_event(d, system, prev_state, next_state)
 
             if auth48:
-                e.desc = re.sub(r"(<b>.*</b>)", r"<a href=\"%s\">\1</a>" % auth48, e.desc)
+                e.desc = re.sub(r"(<b>.*</b>)", "<a href=\"%s\">\\1</a>" % auth48, e.desc)
                 e.save()
 
             changed.add(name)