diff options
author | Agathe Porte <microjoe@microjoe.org> | 2020-08-30 17:35:01 +0200 |
---|---|---|
committer | Agathe Porte <microjoe@microjoe.org> | 2020-08-30 17:35:01 +0200 |
commit | b0998af69e683d51706f9655c2e80c49cc008330 (patch) | |
tree | a6f9cb8ed46a3150c31b77b5daad2a8dcc03648b | |
parent | 3b8090bec44a00d626e571a8078ce288545bbf91 (diff) | |
download | pelican-dir-attach-b0998af69e683d51706f9655c2e80c49cc008330.tar.gz pelican-dir-attach-b0998af69e683d51706f9655c2e80c49cc008330.zip |
force 4 spaces for attributes detection
-rw-r--r-- | dir_attach/__init__.py | 2 |
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: |