formatBeforePublish doen't work with %d


I Switch my openhab instance to OH2.4 and MQTT2 but I have a strange thing with formatBeforePublish
For a number channel and item, when formatBeforePublish is “%d 1” I have only %d value in my topic. If I set formatBeforePublish to “%s 1” I have the correct string (number + space + 1)

Is that a bug?

I’m using the Java formatter and can’t influence the formatting :confused: