Apples & oranges.
Spark-ignited engines throttle the incoming air so there's just enough air to consume all the fuel. Consequently, the combustion temperature and exhaust-gas temperature are more-or-less the same, whether the engine's lightly or heavily loaded.
Diesel engines don't. The incoming air isn't throttled when lightly loaded, to assure that there's enough heat of compression to raise the cylinder temperature above the fuel's autoignition temperature. Then just a wee little bit of fuel is injected, the air and combustion gasses in the cylinder expand and cool, and by the time the exhaust valve opens, the temperature may be too low to prevent water vapor from condensing, too low to keep the catalyst active, and/or too low to keep fuel byproducts from coalescing on the inside of the exhaust system. ("wet stacking")
So much excess air is pumped through an idling Diesel engine's cylinders that it's often unable to keep itself warm in the winter. A block heater won't have any effect on that; its purpose is to make the engine easier to start.