Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newline bug has returned? TW 2.6.1 #3

Closed
hymie0 opened this issue Dec 20, 2021 · 3 comments
Closed

Newline bug has returned? TW 2.6.1 #3

hymie0 opened this issue Dec 20, 2021 · 3 comments

Comments

@hymie0
Copy link

hymie0 commented Dec 20, 2021

I think the newline bug may have returned to Taskwarrior 2.6.1 . All of my onenote notes are reverting to a single line with \n characters where the newlines used to be. As a test, I set

TASK_VERSION_NO_NEWLINE="2.7"

and onenote works as expected, keeping the newlines in place.

@thehunmonkgroup
Copy link
Owner

GothenburgBitFactory/taskwarrior#2645

I'm not running 2.6.x because of this active bug. Last properly working version of TW that I've tested is 2.5.3, waiting on a maintainer fix.

@duckunix
Copy link

duckunix commented Jun 7, 2022

I have a temporary work around until things get settled on the TW side:

diff onenote ~/bin/onenote
9c9
< newline="\n"
---
> newline="\\n"
137c137,138
<       echo "${notes}" | sed "s/${newline}/\\$linefeed/g" | ONENOTE_TASK=${task_number} ${pipe_editor} | ${0} ${task_number} ${consume_arg}
---
>       #echo "${notes}" | sed "s/${newline}/\\$linefeed/g" | ONENOTE_TASK=${task_number} ${pipe_editor} | ${0} ${task_number} ${consume_arg}
>       echo "${notes}" | sed 's/\\n/\n/g' | ONENOTE_TASK=${task_number} ${pipe_editor} | ${0} ${task_number} ${consume_arg}

@thehunmonkgroup
Copy link
Owner

@duckunix @hymie0 Pretty sure the 1.1.0 release fixes this robustly for 2.5.x and 2.6.x -- let me know if there are any other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants