Frontmatter
| id | 8231 |
| title | Prevent YAML line wrapping in IssueSyncer frontmatter |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 31, 2025, 3:47 PM |
| updatedAt | Dec 31, 2025, 3:50 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8231 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 31, 2025, 3:50 PM |
Prevent YAML line wrapping in IssueSyncer frontmatter
tobiu assigned to @tobiu on Dec 31, 2025, 3:48 PM

tobiu
Dec 31, 2025, 3:50 PM
Input from Gemini:
✦ I have implemented the fix in
IssueSyncer.mjsto prevent YAML line wrapping in the frontmatter.Changes:
- Updated the
matter.stringify()call to include{ lineWidth: -1 }.- This ensures that long lines, such as those in
subIssuescontaining titles, are not wrapped into multiline strings.Next Steps:
- The next session startup will automatically trigger a sync, which will regenerate the local markdown files with the corrected format.
Closing this ticket as the implementation is complete and committed.
tobiu closed this issue on Dec 31, 2025, 3:50 PM
Previous attempts to sanitize issue titles (#8230) addressed newline characters but did not account for the YAML dumper's default behavior of wrapping long lines. This results in frontmatter fields (like
subIssues) spanning multiple physical lines (using folded style>-), which can break simple parsers or AI agents reading the file.Goal: Force
IssueSyncer.mjsto output frontmatter strings as single physical lines, regardless of length.Implementation:
IssueSyncer.mjsto pass{ lineWidth: -1 }(or appropriatejs-yamloption viagray-matter) to thematter.stringify()call.Verification:
sync_all.subIssueslists) are rendered on a single line in the.mdfile.