diff --git a/helper.php b/helper.php index 51752b8..38f65b0 100644 --- a/helper.php +++ b/helper.php @@ -170,7 +170,11 @@ function _addPrePostFixes($type, $val, $pre = '', $post = '') { $post = $type['postfix']; } } - $val = $pre . $val . $post; + if($val != "") + { + $val = $pre . $val . $post; + } + $val = $this->replacePlaceholders($val); return $val; } @@ -311,7 +315,14 @@ function _formatData($column, $value, Doku_Renderer_xhtml $R) { //use ID from first value of the multivalued line if($data == null) { - $data = $ID; + + //but only if is multivalued line + if($val!=$ID."|"){ + $data = $ID; + } + else { //line is simply empty + $data = ""; + } $ID = $storedID; } else { $storedID = $ID;