Originally posted by More Power:
Diesel fuel expands and contracts with temperature variations.
The air in the tank expands and contracts with temperature also, and the coefficient of expansion of air is greater than fuel. This is why the tank can build pressure while the engine is running. Even though fuel is being drawn out, the air is getting heated by the return fuel and expands more than enough to make up the difference.