Fix content filter stripping single newlines

parent 837c429c
......@@ -197,7 +197,8 @@ def filter_malformed_content(text: str) -> str:
# Clean up excessive newlines left from removal
filtered = re.sub(r'\n{3,}', '\n\n', filtered)
return filtered.strip()
# Don't strip single newlines or whitespace - they might be valid content
return filtered
# =============================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment