瀏覽代碼

Minor newline prettification.

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
ac9217341c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bot/tasks/afc_statistics.py

+ 1
- 1
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("(<!-- stat begin -->)(.*?)(<!-- stat end -->)",
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


Loading…
取消
儲存