summaryrefslogtreecommitdiffstats
path: root/site
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-05-27 16:52:21 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-05-27 16:52:21 (EDT)
commit2b03c1accb02d540087485a318be700b7e671fee (patch)
tree7bf2913b6c0b9159fb7f6f6f255bcae6690d7774 /site
parentc75e3d259dad8c37829af91651d017a89dee3fb7 (diff)
downloadlibreboot.org-2b03c1accb02d540087485a318be700b7e671fee.zip
libreboot.org-2b03c1accb02d540087485a318be700b7e671fee.tar.gz
libreboot.org-2b03c1accb02d540087485a318be700b7e671fee.tar.bz2
site/functions.php: fix incorrect line breaks in html
Diffstat (limited to 'site')
-rw-r--r--site/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/functions.php b/site/functions.php
index b90a35e..e0cda47 100644
--- a/site/functions.php
+++ b/site/functions.php
@@ -22,8 +22,8 @@
/* Minified HTML output (note: needs work for <pre> tags) */
function miniHtml($strHtml) {
return $strHtml = preg_replace(
- array('/(\s)+/s', '/\>[^\S ]+/s', '/[^\S ]+\</s'),
- array('\\1', '>', '<'),
+ array("/\r|\n/", "/(\s)+/s", "/\>[^\S ]+/s", "/[^\S ]+\</s"),
+ array("", "\\1", ">", "<"),
$strHtml
);
}