hholzgra Thu Sep 19 03:46:58 2002 EDT
Modified files:
/phpdoc/dsssl html-common.dsl
Log:
make sure that function version info only apears on <refentry> pages
that have a <methodsynopsys> in them (and not e.g. on the preg pattern
descriptions)
Index: phpdoc/dsssl/html-common.dsl
diff -u phpdoc/dsssl/html-common.dsl:1.8 phpdoc/dsssl/html-common.dsl:1.9
--- phpdoc/dsssl/html-common.dsl:1.8 Mon Jun 17 18:48:46 2002
+++ phpdoc/dsssl/html-common.dsl Thu Sep 19 03:46:57 2002
@@ -1,6 +1,6 @@
;; -*- Scheme -*-
;;
-;; $Id: html-common.dsl,v 1.8 2002/06/17 22:48:46 hholzgra Exp $
+;; $Id: html-common.dsl,v 1.9 2002/09/19 07:46:57 hholzgra Exp $
;;
;; Returns the depth of the auto-generated TOC (table of
@@ -346,11 +346,18 @@
;; Put version info where the refname part in the refnamediv is
(element (refnamediv refname)
(make sequence
+ (if (node-list-empty?
+ (select-elements (children
+ (select-elements (children (parent (parent (current-node)))) (normalize
+"refsect1"))
+ ) (normalize "methodsynopsis"))
+ )
+ (empty-sosofo)
(make element gi: "P"
(literal " (")
(version-info (current-node))
(literal ")")
)
+ )
(process-children)
)
)
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php