]> git.plutz.net Git - lobster/commitdiff
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 f4c1b21a6f51462ee984e9e758d91a7b910926b0..e5513c42ba560e1585dc3edfc41a33bdfce55d5b 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>'