Browse Source

Merge pull request #778 from ShaneMcC/unstyledfunc

Apply display properties to a value before running functions on it.
pull/783/head
Shane Mc Cormack 7 years ago
parent
commit
f8fd61fa57
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/main/java/com/dmdirc/ui/messages/EventFormatter.java

+ 2
- 2
src/main/java/com/dmdirc/ui/messages/EventFormatter.java View File

@@ -129,12 +129,12 @@ public class EventFormatter {
129 129
             }
130 130
         }
131 131
 
132
-        String value = target.toString();
132
+        String value = applyDisplayProperties(displayProperties, target.toString());
133 133
         for (int i = 1; i < functionParts.length; i++) {
134 134
             value = propertyManager.applyFunction(value, functionParts[i]);
135 135
         }
136 136
 
137
-        return applyDisplayProperties(displayProperties, value);
137
+        return value;
138 138
     }
139 139
 
140 140
     // TODO: It should be possible for plugins etc to add new ways of applying properties.

Loading…
Cancel
Save