padding re-implemented not to pad blank lines. Not working