diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 5a13476..2deac22 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -209,17 +209,19 @@ const Index = () => { // Clean content function const cleanContent = (content: string) => { - const lines = content.split('\n'); - const trimmedLines: string[] = []; + return content.trim(); + // const lines = content.split('\n'); + // const trimmedLines: string[] = []; - for (const line of lines) { - const trimmedContent = line.trim().replace(/\s{2,}/g, ' '); - if (trimmedContent.length > 0) { - trimmedLines.push(trimmedContent); - } - } + // for (const line of lines) { + // // const trimmedContent = line.trim().replace(/\s{2,}/g, ' '); + // const trimmedContent = line.trim(); + // if (trimmedContent.length > 0) { + // trimmedLines.push(trimmedContent); + // } + // } - return trimmedLines.join('\n'); + // return trimmedLines.join('\n'); }; // Flexible ISO8601 date parsing (supports YYYY, YYYY-MM, YYYY-MM-DD, full ISO)