From f35203d2c75c0b80b6a19b12e8383f7068ddd110 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 30 Mar 2006 20:39:41 +0000 Subject: [PATCH] Add an alternate link to the plain text version. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@44 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- dotfiles2html/dotfiles2html.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index f13e4dc..4d4d016 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -1,5 +1,12 @@ #! /usr/local/bin/python -O +__version__ = "$Revision$"[11:-2] +__revision__ = "$Id$"[5:-2] +__date__ = "$Date$"[7:-2] +__author__ = "Oleg BroytMann " +__copyright__ = "Copyright (C) 2004-2006 PhiloSoft Design" + + import os, shutil os.umask(0022) # octal; -rw-r--r-- @@ -27,6 +34,7 @@ def add_headers(fname, prev, next): html_file.write("#attr $Prev = \"%s.html\"\n" % prev) if next: html_file.write("#attr $Next = \"%s.html\"\n" % next) + html_file.write('#attr $alternates = (("text/plain", "Plain text version", "%s"),)' % fname) html_file.write("\n") html_file.write("#def body_html\n") html_file.write("#raw\n") -- 2.39.2