diff --git a/src/IDF/IssueComment.php b/src/IDF/IssueComment.php
index 20c8339..dd4edd8 100644
--- a/src/IDF/IssueComment.php
+++ b/src/IDF/IssueComment.php
@@ -164,7 +164,8 @@ class IDF_IssueComment extends Pluf_Model
foreach ($ls as $l) {
if ($t == 'rem') $out .= '';
$out .= Pluf_esc($l);
- if ($t == 'rem') $out .= ' ';
+ if ($t == 'rem') $out .= '';
+ $out .= ' ';
}
}
} else {
diff --git a/src/IDF/templates/idf/issues/view.html b/src/IDF/templates/idf/issues/view.html
index 8694725..488819c 100644
--- a/src/IDF/templates/idf/issues/view.html
+++ b/src/IDF/templates/idf/issues/view.html
@@ -44,7 +44,7 @@
{if $w == 'lb' or $w == 'rel'}
{foreach $v as $t => $ls}
{foreach $ls as $l}
- {if $t == 'rem'}{/if}{$l}{if $t == 'rem'} {/if}
+ {if $t == 'rem'}{/if}{$l}{if $t == 'rem'}{/if}
{/foreach}
{/foreach}
{else}