summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--handlers/views_handler_field.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/handlers/views_handler_field.inc b/handlers/views_handler_field.inc
index 6c61c66..0b7207b 100644
--- a/handlers/views_handler_field.inc
+++ b/handlers/views_handler_field.inc
@@ -1049,15 +1049,16 @@ If you would like to have the characters %5B and %5D please use the html entity
*/
function render_text($alter) {
$value = $this->last_render;
- if (!empty($this->options['alter']['trim_whitespace'])) {
- $value = trim($value);
- }
if (!empty($alter['alter_text']) && $alter['text'] !== '') {
$tokens = $this->get_render_tokens($alter);
$value = $this->render_altered($alter, $tokens);
}
+ if (!empty($this->options['alter']['trim_whitespace'])) {
+ $value = trim($value);
+ }
+
// Check whether the value is empty and return nothing, so the field isn't rendered.
// First check whether the field should be hidden if the value(hide_alter_empty = TRUE) /the rewrite is empty (hide_alter_empty = FALSE).
// For numeric values you can specify whether "0"/0 should be empty.