From 45b0fe42a979d444d547a5248eb2e9e915aaf16a Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 14 Jan 2007 02:10:24 +0000 Subject: Add "block-content" to allow user comments on block level elements in quickstart docs. --- buildscripts/texbuilder/Page2Tex.php | 48 +++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 4 deletions(-) (limited to 'buildscripts/texbuilder/Page2Tex.php') diff --git a/buildscripts/texbuilder/Page2Tex.php b/buildscripts/texbuilder/Page2Tex.php index 5d9a2b81..2374647c 100644 --- a/buildscripts/texbuilder/Page2Tex.php +++ b/buildscripts/texbuilder/Page2Tex.php @@ -4,6 +4,9 @@ class Page2Tex { private $_current_page; private static $header_count = 0; + private static $p_count=0; + private static $hil_count=0; + private $page_count=0; private $_base; private $_dir; @@ -270,29 +273,66 @@ class Page2Tex } - function set_header_id($content) + function set_header_id($content, $j) { + $this->page_count=$j; $content = preg_replace_callback('/
/', array($this, 'add_p'), $content);
+ $content = preg_replace_callback('/ ";
+ }
}
?>
--
cgit v1.2.3