From ac9217341c6798836bb2c86eb0142bda19fbc6d9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 30 Oct 2011 01:15:10 -0400 Subject: [PATCH] Minor newline prettification. --- bot/tasks/afc_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index e6b982d..d6100c3 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -72,7 +72,7 @@ class Task(BaseTask): page = self.site.get_page(self.pagename) text = page.get() newtext = re.sub("()(.*?)()", - statistics.join(("\\1", "\\3")), text, + statistics.join(("\\1\n", "\n\\3")), text, flags=re.DOTALL) if newtext == text: return # Don't edit the page if we're not adding anything