Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Linear.php |
— | — | @@ -131,9 +131,9 @@ |
132 | 132 | $printunit = $unit; |
133 | 133 | } |
134 | 134 | |
135 | | - $this->m_caption = smwfNumberFormat( $value ); |
| 135 | + $this->m_caption = ( $this->m_outformat != '-' ? smwfNumberFormat( $value ) : $value ); |
136 | 136 | if ( $printunit != '' ) { |
137 | | - $this->m_caption .= ' ' . $printunit; |
| 137 | + $this->m_caption .= ( $this->m_outformat != '-' ? ' ' : ' ' ) . $printunit; |
138 | 138 | } |
139 | 139 | $this->m_wikivalue = $this->m_caption; |
140 | 140 | $this->m_unitin = $unit; |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Number.php |
— | — | @@ -273,9 +273,9 @@ |
274 | 274 | */ |
275 | 275 | protected function makeUserValue() { |
276 | 276 | $this->convertToMainUnit(); |
277 | | - $this->m_caption = ( $this->m_outformat != '-' ? smwfNumberFormat( $this->m_value ):$this->m_value ); |
| 277 | + $this->m_caption = ( $this->m_outformat != '-' ? smwfNumberFormat( $this->m_value ) : $this->m_value ); |
278 | 278 | if ( $this->m_unit != '' ) { |
279 | | - $this->m_caption .= ' ' . $this->m_unit; |
| 279 | + $this->m_caption .= ( $this->m_outformat != '-' ? ' ' : ' ' ) . $this->m_unit; |
280 | 280 | } |
281 | 281 | $this->m_wikivalue = $this->m_caption; |
282 | 282 | $this->m_unitin = $this->m_unit; |