summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorUrban Müller2007-10-31 15:31:12 +0000
committerUrban Müller2007-10-31 15:31:12 +0000
commit7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e (patch)
tree74087316e06bab9fd935329d95124a286ad812ff /it_html.class
parente83f0b52aa8bdaa3123c64645ba2cdf6def7c2c8 (diff)
downloaditools-7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e.tar.gz
itools-7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e.tar.bz2
itools-7e71d3f6fd54e8370f051b4dd35d9b782aeeaa2e.zip
dont indent <pre>
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
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";