diff options
author | Urban Müller | 2007-10-31 15:31:12 +0000 |
---|---|---|
committer | Urban Müller | 2007-10-31 15:31:12 +0000 |
commit | 7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e (patch) | |
tree | 74087316e06bab9fd935329d95124a286ad812ff /it_html.class | |
parent | e83f0b52aa8bdaa3123c64645ba2cdf6def7c2c8 (diff) | |
download | itools-7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e.tar.gz itools-7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e.tar.bz2 itools-7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e.zip |
dont indent <pre>
Diffstat (limited to 'it_html.class')
-rw-r--r-- | it_html.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class index 0e64a45..958fe39 100644 --- a/it_html.class +++ b/it_html.class @@ -254,7 +254,7 @@ function _tag($name, $args) $newline = isset($this->hasnonewline[$name]) ? "" : "\n"; # Ultra XML PrettyPrinter 3000 [\] by SCA - if ($this->p['prettyprint'] && $newline && (substr($data, -1, 1) == "\n") && (strpos($data, '<textarea') === false) && ($data != strip_tags($data))) + if ($this->p['prettyprint'] && $newline && (substr($data, -1, 1) == "\n") && (strpos($data, '<textarea') === false && strpos($data, '<pre') === false) && ($data != strip_tags($data))) $data = str_replace("\n", "\n ", "\n" . trim($data)) . "\n"; $result = "<$name"; |