display line breaks in comments
authorpaul <paul@plutz.net>
Mon, 2 Dec 2013 15:22:46 +0000 (15:22 +0000)
committerpaul <paul@plutz.net>
Mon, 2 Dec 2013 15:22:46 +0000 (15:22 +0000)
svn path=/trunk/; revision=33

templates/view_course.sh

index f4c1b21..e5513c4 100755 (executable)
@@ -63,7 +63,7 @@ echo '  </div>'
 echo '  <div class="section COMMENT">'
 echo '    <span class="sectitle">'$(l10n COMMENT)'</span>'
 for n in COMMENT COMMENT{0..10}; do [ -n "$values[$n]" ] &&\
-  echo '    <p class="item COMMENT">'$values[$n]'</p>'
+  echo '    <p class="item COMMENT">'$(echo "$values[$n]" |sed -r "s:$:<br/>:g" )'</p>'
 done
 echo '  </div>'