[geeklog-cvs] geeklog-1.3 config.php,1.118,1.119

tony at iowaoutdoors.org tony at iowaoutdoors.org
Mon Jun 7 16:49:04 EDT 2004


Update of /var/cvs/geeklog-1.3
In directory www:/tmp/cvs-serv5265

Modified Files:
	config.php 
Log Message:
Added options for HTML Tidy usage for PDF feature

Index: config.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/config.php,v
retrieving revision 1.118
retrieving revision 1.119
diff -C2 -d -r1.118 -r1.119
*** config.php	7 Jun 2004 19:09:53 -0000	1.118
--- config.php	7 Jun 2004 20:49:02 -0000	1.119
***************
*** 315,318 ****
--- 315,332 ----
  // Absolute path to the htmldoc binary
  $_CONF['path_to_htmldoc'] = '/path/to/htmldoc';
+ // When enabled, this will pump any HTML through HTML tidy in an attempt to make the
+ // page XHTML compliant prior to usign htmldoc.  NOTE: this tends to improve the
+ // chance that the PDF will be generated.  Producing PDF's from Geeklog's print
+ // mode should work fine as that is generally XHTML complieant. This is disabled by
+ // default because it requires you to install HTML tidy for your platform:
+ // http://tidy.sf.net and you need to get the library (see
+ // http://tidy.sourceforge.net/libintro.html) and then install the PHP PECL by
+ // doing "pear -v install tidy"
+ $_CONF['use_html_tidy'] = 1;
+ // See PHP manual for full list of config options
+ $_CONF['tidy_config_options'] = array(
+                                     'output-xhtml' => true,
+                                     'hide-comments' => true
+                                     );
  // Path where we will store the generated PDF's
  $_CONF['path_pdf'] = $_CONF['path'] . 'pdfs/';




More information about the geeklog-cvs mailing list