fix newlines in important notes of release notes
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 26 Nov 2025 21:26:17 +0000 (22:26 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 26 Nov 2025 21:26:17 +0000 (22:26 +0100)
.github/actions/generate-release-notes/generate_notes.py

index 2c8d7af3a02a729239a6ee3899401e74e15f550e..e857f640278641897c08aeeef6f6634deb35359b 100755 (executable)
@@ -206,7 +206,9 @@ def generate_release_notes(  # noqa: PLR0915
     if important_notes and important_notes.strip():
         lines.append("## ⚠️ Important Notes")
         lines.append("")
-        lines.append(important_notes.strip())
+        # Convert literal \n to actual newlines and preserve existing newlines
+        formatted_notes = important_notes.strip().replace("\\n", "\n")
+        lines.append(formatted_notes)
         lines.append("")
         lines.append("---")
         lines.append("")