Skip to content

restore previous behaviour with \n in strings#11

Merged
rubenv merged 1 commit intomasterfrom
unknown repository
Jun 23, 2014
Merged

restore previous behaviour with \n in strings#11
rubenv merged 1 commit intomasterfrom
unknown repository

Conversation

@johnyb
Copy link
Copy Markdown
Collaborator

@johnyb johnyb commented Jun 23, 2014

An incompatible change (that actually breaks po parsing after writing) had
been introduced with commit e164fcf. If
_process returned an array (which is the case for strings containing \n
character), array.toString will return a comma separated list, which is not
valid po syntax. Added a test to restore the behaviour from before the
e164fcf.

Seems there is still some more to be fixed ;) I found out, that I introduced a bug, that really should be fixed. However, while I was at it, I also started to thinking about #2. At least for the newline case, I verified, that pofile doesn't behave like gettext tools do. I will add some tests for these cases, that will work with mikejholly/node-po#3 merged.

An incompatible change (that actually breaks po parsing after writing) had
been introduced with commit e164fcf. If
_process returned an array (which is the case for strings containing \n
character), array.toString will return a comma separated list, which is not
valid po syntax. Added a test to restore the behaviour from before the
e164fcf.
@rubenv
Copy link
Copy Markdown
Owner

rubenv commented Jun 23, 2014

Oh right. Makes sense to tackle #2 too.

By the way, given that you always provide excellent patches [1], how about I just add you as a committer directly? I'm cool with anything that doesn't break compatibility.

[1] Apart from this regression, but making errors is human, no harm done :-)

rubenv added a commit that referenced this pull request Jun 23, 2014
restore previous behaviour with \n in strings
@rubenv rubenv merged commit f5056bc into rubenv:master Jun 23, 2014
@rubenv
Copy link
Copy Markdown
Owner

rubenv commented Jun 23, 2014

Pushed this to NPM as 0.2.11.

@johnyb
Copy link
Copy Markdown
Collaborator Author

johnyb commented Jun 23, 2014

Thanks :) Adding me as a commiter would be nice. I would still like to keep that PR work-flow, but commiting directly to this repo would simplify it. I would only have to maintain one repo, instead of two.

@rubenv
Copy link
Copy Markdown
Owner

rubenv commented Jun 23, 2014

I've added you to the repo (so you can make branches here). Feel free to keep sending PRs, I'll happily look at them.

@johnyb johnyb deleted the fix_newline_in_msgid branch June 23, 2014 13:09
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

Successfully merging this pull request may close these issues.

2 participants