[Epydoc-commits] SF.net SVN: epydoc: [1759] trunk/epydoc/src/epydoc/docwriter/latex.py
Brought to you by:
edloper
From: <ed...@us...> - 2008-02-23 19:32:15
|
Revision: 1759 http://epydoc.svn.sourceforge.net/epydoc/?rev=1759&view=rev Author: edloper Date: 2008-02-23 11:32:13 -0800 (Sat, 23 Feb 2008) Log Message: ----------- - Removed stale code that was accidentally not deleted in previous checkin Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/latex.py Modified: trunk/epydoc/src/epydoc/docwriter/latex.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/latex.py 2008-02-23 19:06:41 UTC (rev 1758) +++ trunk/epydoc/src/epydoc/docwriter/latex.py 2008-02-23 19:32:13 UTC (rev 1759) @@ -134,7 +134,7 @@ (ValueDoc.SUMMARY_REPR_LINELEN, ValueDoc.REPR_LINELEN, ValueDoc.REPR_MAXLINES) = orig_valdoc_defaults - def _write_sty(self, directory, stylesheet, filename='epydoc.sty'): + def _write_sty(self, directory, stylesheet): """ Copy the requested LaTeX stylesheet to the target directory. The stylesheet can be specified as a name (i.e., a key from @@ -170,31 +170,7 @@ else: raise IOError("Can't find LaTeX style file: %r" % stylesheet) - - self._write_sty(directory, None, 'epydoc-default.sty') - - - - if stylesheet is None: - sty = STYLESHEETS['base'] - elif os.path.exists(stylesheet): - try: sty = open(stylesheet, 'rb').read() - except: raise IOError("Can't open LaTeX style file: %r" % - stylesheet) - self._write_sty(directory, None, 'epydoc-default.sty') - elif stylesheet in STYLESHEETS: - sty = STYLESHEETS[stylesheet] - if sty != STYLESHEETS['base']: - self._write_sty(directory, None, 'epydoc-default.sty') - else: - raise IOError("Can't find LaTeX style file: %r" % stylesheet) - - # Write the stylesheet. - out = open(os.path.join(directory, filename), 'wb') - out.write(sty) - out.close() - def _write(self, write_func, directory, filename, *args): # Display our progress. self._files_written += 1 @@ -302,9 +278,7 @@ out('\\usepackage[%s]{inputenc}\n' % self.get_latex_encoding()) # If we're generating hyperrefs, add the appropriate packages. - # !!!!!!!!!!!!!!!!!!!!!! - # !!! JEG - this needs to be the last thing in the preamble - # !!!!!!!!!!!!!!!!!!!!!! + # Note: this needs to be the last thing in the preamble -JEG if self._hyperref: out('\\definecolor{UrlColor}{rgb}{0,0.08,0.45}\n') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |