CVS commit by metz: - stop this cvs log from screwing up site layout by wrapping lines with more than 100 chars - add some spacing between cvs commits - make commit text preformatted, looks much nicer on (TAB) indented code M +3 -3 index.php 1.5 M +18 -2 rss.inc 1.6 --- www/apps/noatun/index.php #1.4:1.5 @@ -27,11 +27,11 @@

Recent Noatun Development Activity (CVS Commits)

- +
read(fopen('cvscommits.rdf', 'r'), - "\n\n\n"); -print $out; + "\n"); +echo($out); ?>

{TITLE}

\n{DESCRIPTION}
{TITLE}
{DESCRIPTION}
--- www/apps/noatun/rss.inc #1.5:1.6 @@ -56,6 +56,22 @@ break; case "DESCRIPTION": - $data = preg_replace("/[\n\r]+/", "
", $data); - $this->description .= $data; + $data = preg_replace("/[\n\r]+/", "", $data); // get rid of newlines + define(MAXLEN, 100); + if (strlen($data) > MAXLEN && substr_count($data, " ") < 2) + { + $res = ""; + while(strlen($data) >= MAXLEN) + { + $res .= substr($data, 0, MAXLEN)."
"; + $data = substr($data, MAXLEN); + } + $res .= $data; + } + else // line consists of words and can be wordwrapped properly + { + $res = wordwrap($data, MAXLEN); + } + + $this->description .= $res; break; case "LINK":