summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgathe Porte <microjoe@microjoe.org>2020-08-30 17:35:01 +0200
committerAgathe Porte <microjoe@microjoe.org>2020-08-30 17:35:01 +0200
commitb0998af69e683d51706f9655c2e80c49cc008330 (patch)
treea6f9cb8ed46a3150c31b77b5daad2a8dcc03648b
parent3b8090bec44a00d626e571a8078ce288545bbf91 (diff)
downloadpelican-dir-attach-b0998af69e683d51706f9655c2e80c49cc008330.tar.gz
pelican-dir-attach-b0998af69e683d51706f9655c2e80c49cc008330.zip
force 4 spaces for attributes detection
-rw-r--r--dir_attach/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir_attach/__init__.py b/dir_attach/__init__.py
index cf0510f..c19f6dd 100644
--- a/dir_attach/__init__.py
+++ b/dir_attach/__init__.py
@@ -68,7 +68,7 @@ def expand_dir_attach(content, dirname):
# a whole content.replace to avoid to replace inside of paragraphs, etc.
regexes = (
(r"^(.. \w+::) {dir_attach}(.*)$", fr"\1 {dest}\2"),
- (r"^(\s+:\w+:) {dir_attach}(.*)$", fr"\1 {dest}\2"),
+ (r"^( :\w+:) {dir_attach}(.*)$", fr"\1 {dest}\2"),
)
for match, replace in regexes: