X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=dotfiles2html%2Fdotfiles2html.py;h=7c6f95a18734d8cc32ded20a9de8443911a7b516;hb=123caa2fc6ef46d3a862678b45077923fd1a2138;hp=e8e52ae7437480897c39155457725dce661786b2;hpb=f668c4b20ce715e71e534432c247750da908fd4f;p=phdru.name%2Fphdru.name.git diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index e8e52ae..7c6f95a 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -5,6 +5,7 @@ __copyright__ = "Copyright (C) 2004-2020 PhiloSoft Design" import filecmp import os +import re import shutil os.umask(0022) # octal; -rw-r--r-- @@ -79,6 +80,8 @@ def process_dotfile(i, fname, ftype, file_types): text = file.read() file.close() + text = re.sub('cgmem_nice \d+ ', '', text) + if fname in ('mailcap', 'mc.ext', 'menu'): file = open(fname, 'w') text = text.replace('mplay', 'mplayer')