diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-06-10 12:42:57 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-06-10 12:42:57 +0200 |
commit | f99349293e71fb8f74f79034c33ebc2583aa1b61 (patch) | |
tree | d0c88ad2f4937c550187d39a358a4b3acdcf9104 | |
parent | Handle deffinition lists at start of entries. (diff) | |
download | vimwiki-scripts-f99349293e71fb8f74f79034c33ebc2583aa1b61.tar.gz vimwiki-scripts-f99349293e71fb8f74f79034c33ebc2583aa1b61.tar.xz |
Change encoding method for tex labels.
-rwxr-xr-x | do.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ import os import pwd import subprocess from subprocess import PIPE -from base64 import b64encode +import hashlib import os.path as path import email from email.policy import default @@ -276,7 +276,7 @@ for match in tag_iter: outstr += page1[pos:match.start()] pos = match.end() - uid = b64encode((url + frag).encode('UTF-8')) + uid = hashlib.md5((url + frag).encode('UTF-8')).hexdigest() title = comment or url or frag |