New logic for creating space around fractions