Modifying html line to fit into buffer.