Closed ssshake closed 5 years ago
OK so I'm a dummy but typing this out helped me think it through.
I was trying to insert new line (\n) but this was markup. So the correct answer was to use markup (
).
I realized this after seeing that your wordWrap() seems to scrub out newlines from the html document which makes total sense.
Please correct me if I shouldn't be asking questions like this on here.
I'm at my wits end trying to figure this out. I just want to do a regex replace and insert a new line.
.replaceAll("<img.[^>]*>", "\n\r[IMAGE] ")
But instead of a carriage return in the terminal I just get a couple spaces.
"something that should be on line above [IMAGE]"
turns into
"something that should be on line above (space)(space) [IMAGE]"
I'm starting to think I can't use a \n\r because there is nothing to convert it to a petscii carriage return.