[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] com phd: suppress tags for varname element to prevent double tagging: phpdotnet/phd/Packag
From: Peter Cowburn <salathe () php ! net>
Date: 2020-08-25 16:37:30
Message-ID: php-mail-28fd3b8839a211499c28cde4b0ec71f41371042156 () git ! php ! net
[Download RAW message or body]
Commit: 87c0c578e1456612778824587aba272e3052a6ac
Author: Peter Cowburn <salathe@php.net> Tue, 25 Aug 2020 17:37:13 +0100
Parents: 3177809ebd0cac16708321f5f226b11876e1a948
Branches: master
Link: http://git.php.net/?p=phd.git;a=commitdiff;h=87c0c578e1456612778824587aba272e3052a6ac
Log:
suppress tags for varname element to prevent double tagging
For Package_PHP_XHTML <varname> elements were being formatted
using format_varname_text due to $mytextmap in that class and
the inherited behaviour of wrapping in a <var> element
as specified in Package_Generic_XHTML::$myelementmap.
The fix here is to override that behaviour from the parent class
by explicitly stating we don't want any formatting at the element
level (by using format_suppressed_tags) and let the text handler
take care of it.
Changed paths:
M phpdotnet/phd/Package/PHP/XHTML.php
Diff:
diff --git a/phpdotnet/phd/Package/PHP/XHTML.php b/phpdotnet/phd/Package/PHP/XHTML.php
index 448696c..7330191 100644
--- a/phpdotnet/phd/Package/PHP/XHTML.php
+++ b/phpdotnet/phd/Package/PHP/XHTML.php
@@ -72,6 +72,9 @@ abstract class Package_PHP_XHTML extends Package_Generic_XHTML {
/* DEFAULT */ 'span',
'methodsynopsis' => 'format_suppressed_tags',
),
+ 'varname' => array(
+ /* DEFAULT */ 'format_suppressed_tags',
+ ),
);
private $mytextmap = array(
'acronym' => 'format_acronym_text',
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic