MFB: Replace linebreaks with spaces.
authorJan Schneider <jan@horde.org>
Wed, 12 Aug 2009 17:55:01 +0000 (19:55 +0200)
committerJan Schneider <jan@horde.org>
Tue, 18 Aug 2009 09:43:59 +0000 (11:43 +0200)
kronolith/templates/edit/edit.inc

index ac0633e..5e701e6 100644 (file)
@@ -211,7 +211,7 @@ if ($event->alarm) {
 <tr>
  <td colspan="5" class="control toggle" onclick="KronolithEventForm.toggleSection('description')">
   <?php echo Horde::img('tree/blank.png', '', array('id' => 'toggle_description'), $GLOBALS['registry']->getImageDir('horde')) . ' <strong>' . Horde::label('description', _("Descri_ption")) ?></strong>
-  <span class="extra" id="extra_description"><?php echo htmlspecialchars(substr(str_replace(array("\r", "\n"), '', $event->getDescription()), 0, 80)) ?></span>
+  <span class="extra" id="extra_description"><?php echo htmlspecialchars(substr(str_replace(array("\r", "\n"), '  ', $event->getDescription()), 0, 80)) ?></span>
 </td>
 </tr>
 <tr id="section_description">