diff options
author | Urban Müller | 2007-11-13 15:39:13 +0000 |
---|---|---|
committer | Urban Müller | 2007-11-13 15:39:13 +0000 |
commit | 2c0eee0347d509e1dbffbb849893a22a8cb60aa2 (patch) | |
tree | 688c28d90e1d568bce8e10d7b441ba590c0f5d41 /it_html.class | |
parent | 944f8ca2a616df44e9a49a371050d1101be8924a (diff) | |
download | itools-2c0eee0347d509e1dbffbb849893a22a8cb60aa2.tar.gz itools-2c0eee0347d509e1dbffbb849893a22a8cb60aa2.tar.bz2 itools-2c0eee0347d509e1dbffbb849893a22a8cb60aa2.zip |
dont indent <pre>, documentation
Diffstat (limited to 'it_html.class')
-rw-r--r-- | it_html.class | 8 |
1 files changed, 4 insertions, 4 deletions
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 <!DOCTYPE line - * @param named parameter lang contains language + * @param any number of text args or array of key => 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"; |