standardize number of spaces in custom fragment