diff --git a/tldp/doctypes/__init__.py b/tldp/doctypes/__init__.py index 9101b30..3d87e84 100644 --- a/tldp/doctypes/__init__.py +++ b/tldp/doctypes/__init__.py @@ -1,6 +1,6 @@ -#from .text import Text -#from .rst import RestructuredText -#from .markdown import Markdown +# from .text import Text +# from .rst import RestructuredText +# from .markdown import Markdown from .linuxdoc import Linuxdoc from .docbooksgml import DocbookSGML from .docbook4xml import Docbook4XML diff --git a/tldp/doctypes/docbook4xml.py b/tldp/doctypes/docbook4xml.py index b9cf440..5e4a33d 100644 --- a/tldp/doctypes/docbook4xml.py +++ b/tldp/doctypes/docbook4xml.py @@ -68,7 +68,8 @@ class Docbook4XML(BaseDoctype, SignatureChecker): if os.path.isdir(fullpath): source.append('"' + fullpath + '"') if not source: - logger.debug("%s no images or resources to copy", self.source.stem) + logger.debug("%s no images or resources to copy", + self.source.stem) return True s = 'rsync --archive --verbose %s ./' % (' '.join(source)) return self.shellscript(s) @@ -149,7 +150,7 @@ class Docbook4XML(BaseDoctype, SignatureChecker): @depends(graph, make_html) def make_name_html(self): - '''rename xsltproc/docbook-XSL's index.html to LDP standard STEM.html''' + '''rename DocBook XSL's index.html to LDP standard STEM.html''' s = 'mv -v --no-clobber -- "{output.name_indexhtml}" "{output.name_html}"' return self.shellscript(s) diff --git a/tldp/doctypes/docbooksgml.py b/tldp/doctypes/docbooksgml.py index 9adc4a2..2af88c2 100644 --- a/tldp/doctypes/docbooksgml.py +++ b/tldp/doctypes/docbooksgml.py @@ -65,7 +65,8 @@ class DocbookSGML(BaseDoctype, SignatureChecker): if os.path.isdir(fullpath): source.append('"' + fullpath + '"') if not source: - logger.debug("%s no images or resources to copy", self.source.stem) + logger.debug("%s no images or resources to copy", + self.source.stem) return True s = 'rsync --archive --verbose %s ./' % (' '.join(source)) return self.shellscript(s) @@ -88,7 +89,6 @@ class DocbookSGML(BaseDoctype, SignatureChecker): '''move a blank index.sgml file into the source tree''' if self.indexsgml: return True - indexsgml = os.path.join(self.source.dirname, 'index.sgml') s = '''mv \\ --no-clobber \\ --verbose \\ diff --git a/tldp/doctypes/linuxdoc.py b/tldp/doctypes/linuxdoc.py index 6b71f74..6083506 100644 --- a/tldp/doctypes/linuxdoc.py +++ b/tldp/doctypes/linuxdoc.py @@ -41,7 +41,8 @@ class Linuxdoc(BaseDoctype, SignatureChecker): if os.path.isdir(fullpath): source.append('"' + fullpath + '"') if not source: - logger.debug("%s no images or resources to copy", self.source.stem) + logger.debug("%s no images or resources to copy", + self.source.stem) return True s = 'rsync --archive --verbose %s ./' % (' '.join(source)) return self.shellscript(s)