Update page.tsx

This commit is contained in:
MacRimi
2025-02-14 18:40:30 +01:00
committed by GitHub
parent d697bf9156
commit cb95bc1afc

View File

@@ -6,7 +6,9 @@ async function getChangelog() {
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
try {
const fileContents = fs.readFileSync(changelogPath, "utf8")
return fileContents
// Asegurar que los saltos de línea dobles se respeten
return fileContents.replace(/\r?\n/g, " \n")
} catch (error) {
console.error("Error reading changelog file:", error)
return "Changelog content not found."