I'm parsing text from file with Python. I have to replace all newlines (
) with
cause this text will build html-content. For example, here is some line from file:
'title
'
Now I do:
thatLine.replace('
', '<br />')
print thatLine
And I still see the text with newline after it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…