Skip to content

fix(taskfile): preserve wrapped Worklog continuation lines - #59

Merged
ArgonQQ merged 1 commit into
mainfrom
task/t-wlg1
Aug 6, 2026
Merged

fix(taskfile): preserve wrapped Worklog continuation lines#59
ArgonQQ merged 1 commit into
mainfrom
task/t-wlg1

Conversation

@ArgonQQ

@ArgonQQ ArgonQQ commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

  • parseTaskFile's Worklog branch now attaches non-bullet lines that follow a - entry to that entry as continuation lines instead of dumping them into unknownLines.
  • serializeTaskFile writes the entry's first line with the - bullet prefix and re-emits continuation lines verbatim (their original leading whitespace), keeping serializeTaskFile(parseTaskFile(x)) a byte-for-byte fixpoint for wrapped entries.
  • Scope confined to the ## Worklog branch only, per t-wlg1's settled scope (preserve-verbatim, option A) — Meta/Description/Delivered handling and .loopboard/tasks/t-glb2.md's existing scrambled worklog are untouched.

Test plan

  • make check (build + node --test + vsce package) green
  • Extended test/fixtures/taskfile-full.md with a wrapped Worklog entry (bullet + 2 continuation lines)
  • New test asserts the wrapped entry parses into worklog with nothing landing in unknownLines
  • Existing byte-for-byte fixpoint test (canonical fixture round-trips byte-for-byte) passes against the updated fixture

Non-bullet lines following a `- ` Worklog entry now attach to that
entry instead of falling into unknownLines, so parse->write->parse
stays a byte-for-byte fixpoint for hard-wrapped entries.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

📦 Build succeeded — installable .vsix for task/t-wlg1 (commit b1689a5):

loopboard-todo-wlg1.vsix

Download from the run's Artifacts, unzip, then install: code --install-extension loopboard-todo-wlg1.vsix (or VS Code → Extensions → ⋯ → Install from VSIX…).

@ArgonQQ
ArgonQQ merged commit 3639c17 into main Aug 6, 2026
1 check passed
@ArgonQQ
ArgonQQ deleted the task/t-wlg1 branch August 6, 2026 07:06
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.21.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant