From 2c0eee0347d509e1dbffbb849893a22a8cb60aa2 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 13 Nov 2007 15:39:13 +0000 Subject: dont indent
, documentation
---
it_html.class | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'it_html.class')
diff --git a/it_html.class b/it_html.class
index 8477f64..f7bff0e 100644
--- a/it_html.class
+++ b/it_html.class
@@ -113,9 +113,9 @@ function configure($p)
* Example application code to render page:
* echo html(head(...), body(...));
*
- * @param any number of text args or array of key => value for $p.
- * @param named parameter doctype can override value pairs
+ * Defaults for key => value parameters are inherited from the it_html constructor and should be set there.
+ * The parameters are $p['lang'], $p['htmltype'] and $p['doctype']
*/
function html($args)
{
@@ -272,7 +272,7 @@ function _tag($name, $args)
}
# Apply a kind of magic... this needs further investigation
- if (isset($data) || preg_match('/^(a|div|iframe|script|span|td|textarea)$/i', $name))
+ if (isset($data) || preg_match('/^(a|div|iframe|pre|script|span|td|textarea)$/i', $name))
$result .= ">$data$name>$newline";
elseif ($this->p['htmltype'] == 'html')
$result .= ">$newline";
--
cgit v1.2.3