diff options
author | Ivan Dolgov <ivan@qvarnlabs.com> | 2017-10-04 12:49:27 +0300 |
---|---|---|
committer | Ivan Dolgov <ivan@qvarnlabs.com> | 2017-10-04 12:49:27 +0300 |
commit | 64ab6c3c6ecc27a3e95c72e57a9e50204a207533 (patch) | |
tree | 931faed9b24defa535830c69af48df9a16a6386a | |
parent | f95afe807f91c49802501f756e92211c3a553f04 (diff) | |
download | ql-ikiwiki-publish-64ab6c3c6ecc27a3e95c72e57a9e50204a207533.tar.gz |
Fix UML block search bug
-rwxr-xr-x | ql-ikiwiki-publish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ql-ikiwiki-publish b/ql-ikiwiki-publish index 01cc404..bfdc06c 100755 --- a/ql-ikiwiki-publish +++ b/ql-ikiwiki-publish @@ -57,7 +57,7 @@ def process_uml_blocks(mdwnpath, mdwndir, filename): content = f.read() with open(mdwnpath, 'w') as f: link = '[[!img %s]]' % os.path.basename(imgpath) - f.write(re.sub(block, link, content)) + f.write(re.sub(re.escape(block), link, content)) def process_uml_includes(mdwnpath, mdwndir): |