Changed insertLine functions to work with tabs

Instead of having the functions insert spaces equal to the column number, it copies the same formatting of the current line. If there are any tabs ('\t'), it will not replace them with spaces.