aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo/log.py')
-rw-r--r--MgaRepo/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/log.py b/MgaRepo/log.py
index 56965c5..643f397 100644
--- a/MgaRepo/log.py
+++ b/MgaRepo/log.py
@@ -148,7 +148,7 @@ class _Release(_Revision):
(self.version, self.release, self.revisions)
return line
-unescaped_macro_pat = re.compile(r"([^%])%([^%])")
+unescaped_macro_pat = re.compile(r"(^|[^%])%([^%])")
def escape_macros(text):
escaped = unescaped_macro_pat.sub("\\1%%\\2", text)