<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:arial, sans-serif;">I'm loading a text frame from a utf-8 encoded text file, and within my Scribus Python code I want to search for the standard newline character, ascii value 10. When I see an ascii 10 as the line separator I want to apply a special paragraph style to the following paragraph. Most paragraphs end with the Unicode paragraph separator character, \u2029, and in those cases the default paragraph style is fine.<br></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;">My problem is that both these types of characters are matching '\r' when I use re.search in python. also, if I select either line separator character, then do getText(), I get a '\r' no matter what. I've confirmed that my file encoding is utf-8. What am I missing? How can I search for a simple '\n' character?<br></div><div style="font-family:arial, sans-serif;"><br></div><div style="font-family:arial, sans-serif;"><br></div><div id="sig49496385"><div class="signature">--<br></div><div class="signature"><br></div><div class="signature">  Matt Miller<br></div><div class="signature">  mailto:matt.miller@fastmail.com<br></div><div class="signature"><br></div></div><div style="font-family:arial, sans-serif;"><br></div></body></html>