We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 56e2b000 authored by mattl's avatar mattl

Issue #279 raises the point of missing newlines

parent a75b1df6
......@@ -2611,6 +2611,9 @@ function common_log_delta($comment=null)
function common_strip_html($html, $trim=true, $save_whitespace=false)
// first replace <br /> with \n
$html = preg_replace('/\<(\s*)?br(\s*)?\/?(\s*)?\>/i', "\n", $html);
// then, unless explicitly avoided, remove excessive whitespace
if (!$save_whitespace) {
$html = preg_replace('/\s+/', ' ', $html);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment