Mercurial > projects > dil
diff trunk/src/docgen/sourcelisting/writers.d @ 454:dbdc9fa5d479
depgraph fixes, better design for multiple doctargets.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Fri, 26 Oct 2007 01:04:09 +0200 |
parents | 3f44c38bf870 |
children | 33a4cb255fcc |
line wrap: on
line diff
--- a/trunk/src/docgen/sourcelisting/writers.d Thu Oct 25 01:08:38 2007 +0300 +++ b/trunk/src/docgen/sourcelisting/writers.d Fri Oct 26 01:04:09 2007 +0200 @@ -15,8 +15,8 @@ super(generator); } - ListingWriter createListingWriter(DocumentWriter writer) { - switch (options.docFormat) { + ListingWriter createListingWriter(DocumentWriter writer, DocFormat outputFormat) { + switch (outputFormat) { case DocFormat.LaTeX: return new LaTeXWriter(this, writer); case DocFormat.XML: @@ -29,4 +29,4 @@ throw new Exception("Listing writer type does not exist!"); } } -} \ No newline at end of file +}