I cannot for the life of me figure out how to do this.
I need to be able to figure out what the last character of each line in a document is. If the last character is a colon (

, then I need to move the word that precedes the colon (along with the colon) into the next line instead.
I have no idea how to even access a single line as some sort of object. Any help would be much appreciated.