#!/usr/bin/perl
#
# Format XHTML generated by pod2html (via tidy) for websites
#
# Usage: tidy ... pydoc.html | fix-python-xhtml OUTPUT-FILE
#
# (C) Copyright 2002 Dave Beckett - http://www.dajobe.org/
# University of Bristol
#
use strict;
use File::Basename;
my $progname=basename $0;
my $main_title="Redland RDF Application Framework";
my $doc_title="Python API Reference";
die "USAGE: $progname OUTPUT-FILE\n" if @ARGV < 1;
my($file)=@ARGV;
my($pod_rdf_rel)=($file =~ m%^pod/RDF/%) ? '../' : '';
my($pod_rdf_redland_rel)=($file =~ m%^pod/RDF/Redland/%) ? '' : 'Redland/';
my $skip_heading=0;
open(OUT, ">$file") or die "$progname: Cannot create $file - $!\n";
print OUT qq{\n};
open(IN, "-");
while(
(C) Copyright 2000-$year Dave Beckett, Copyright 2000-2005 University of Bristol
EOT print OUT; } close(IN); close(OUT);