]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - dotfiles2html/dotfiles2html.py
Fixed a misspelling
[phdru.name/phdru.name.git] / dotfiles2html / dotfiles2html.py
index e79a52a1997bf7d7284dcc36c7e824c909b456df..bf0ab7cd509c4bd6e0fc6b70f2b975eb98ca078a 100755 (executable)
@@ -29,6 +29,8 @@ def add_headers(fname, first, prev, next, last):
        txt_name = fname
 
    html_file = open(html_fname, 'w')
+   if fname in ("muttrc", "procmailrc", "vimrc"):
+       html_file.write("#encoding koi8-r\n")
    html_file.write("#extends phd_site\n")
    html_file.write("#implements respond\n")
    html_file.write("#attr $Title = \"%s\"\n" % dot_name)
@@ -76,7 +78,7 @@ def process_dotfile(i, fname, ftype, file_types):
       file.write(text.replace('\e', '<Esc>'))
       file.close()
 
-   elif fname in('mailcap', 'menu') and os.path.exists(fname):
+   elif fname in('mailcap', 'mc.ext', 'menu') and os.path.exists(fname):
       file = open(fname, 'r')
       text = file.read()
       file.close()