I was wondering how I would insert a tab (\t) in before all newline characters (\n) except if the newline comes at the end of a string. Also I'd need to append a \t to the start of the string. For example:
Code: Select all
\t\tSome Text
\tMore text
\t\t\tAlso textCode: Select all
\t\t\tSome Text
\t\tMore text
\t\t\t\tAlso text