Correct inline block padding algorithm