When the format() function was given a value already in the correct format, so that it did not need to do any formatting, the end result could be output without any formatting. This has now been fixed.