Commit 71af30fb authored by Fabian Wolff's avatar Fabian Wolff

Import Upstream version 2.7

parent f8e3ce4d
# Makefile for the doclifter project
VERS=2.6
VERS=2.7
MANDIR=/usr/share/man/man1
BINDIR=/usr/bin
......@@ -7,7 +7,7 @@ BINDIR=/usr/bin
DOCS = README COPYING TODO BUGS \
doclifter.xml doclifter.1 manlifter.xml manlifter.1
TEST = docliftertest1.man test.troff
SOURCES = doclifter manlifter Makefile $(DOCS) $(TEST) docbook-duck.png
SOURCES = doclifter manlifter Makefile $(DOCS) $(TEST) doclifter-logo.png
all: doclifter-$(VERS).tar.gz
......
......@@ -1931,7 +1931,7 @@ class DocLifter:
# Drop everything before the NAME section header, this gets rid of
# useless preamble lines in ppm pages.
date = ""
while not lines[0].startswith("NAME"):
while not lines[0].title().startswith("Name"):
if lines[0].find("Updated: ") > -1:
date = lines[0][lines[0].find("Updated: ")+10:].strip()
lines.pop(0)
......@@ -2045,6 +2045,12 @@ class DocLifter:
stderr.write("Looks like a lynx dump...\n")
text = self.lynxprep(text, file)
self.activate(ManInterpreter)
# Default to a lynx dump even if unsure.
else:
if self.verbose:
stderr.write("Unknown format so defaulting to a lynx dump...\n")
text = self.lynxprep(text, file)
self.activate(ManInterpreter)
if timing_verbosity in self.verbose:
now = time.time()
stderr.write("timing: macro identification = %2.2f\n" % (now-self.basetime,))
......
......@@ -2,12 +2,12 @@
.\" Title: doclifter
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 11/24/2010
.\" Date: 11/25/2010
.\" Manual: Documentation Tools
.\" Source: doclifter
.\" Language: English
.\"
.TH "DOCLIFTER" "1" "11/24/2010" "doclifter" "Documentation Tools"
.TH "DOCLIFTER" "1" "11/25/2010" "doclifter" "Documentation Tools"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
......
......@@ -2,12 +2,12 @@
.\" Title: manlifter
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 11/24/2010
.\" Date: 11/25/2010
.\" Manual: Documentation Tools
.\" Source: manlifter
.\" Language: English
.\"
.TH "MANLIFTER" "1" "11/24/2010" "manlifter" "Documentation Tools"
.TH "MANLIFTER" "1" "11/25/2010" "manlifter" "Documentation Tools"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment