Replacing Microsoft Word newline character in Python
It looks like it should be easy, but I am having trouble clearing the newline character in the content pasted from Microsoft Word. Not a complete line break, but a character CTRL ENTERthat appears as a back arrow in Word. I tried to chr(10)
, chr(13)
, \u000D
, \u000A
and a few others, but I can not compare it with string.replace (). Should I be looking for a different character or should I use something other than a method string.replace
?
0
a source to share