Browse Source

Apply display properties to a value before running functions on it.

This allows "unstyled" to actually work.

Closes #755
pull/778/head
Shane Mc Cormack 7 years ago
parent
commit
0df0e7df90
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
             }
129
             }
130
         }
130
         }
131
 
131
 
132
-        String value = target.toString();
132
+        String value = applyDisplayProperties(displayProperties, target.toString());
133
         for (int i = 1; i < functionParts.length; i++) {
133
         for (int i = 1; i < functionParts.length; i++) {
134
             value = propertyManager.applyFunction(value, functionParts[i]);
134
             value = propertyManager.applyFunction(value, functionParts[i]);
135
         }
135
         }
136
 
136
 
137
-        return applyDisplayProperties(displayProperties, value);
137
+        return value;
138
     }
138
     }
139
 
139
 
140
     // TODO: It should be possible for plugins etc to add new ways of applying properties.
140
     // TODO: It should be possible for plugins etc to add new ways of applying properties.

Loading…
Cancel
Save