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

New lines get lost #2

Open
vjanoch opened this issue Jan 30, 2013 · 0 comments
Open

New lines get lost #2

vjanoch opened this issue Jan 30, 2013 · 0 comments

Comments

@vjanoch
Copy link

vjanoch commented Jan 30, 2013

Hi Thomas,

first of all I want to thank you for sharing your source!!!

I'd like to contribute a little enhancement. New lines (e.g. within notes) are being eliminated due to the use of implode in combination with the empty string glue. An easy fix is not to use an empty string but a "\n". The side effect that the xml-tags are separated with \n does not really matter.

I suggest to change the following line 291 ...

$s_responseBody = trim(implode('',$a_response['body']));

... to ...

$s_responseBody = trim(implode("\n",$a_response['body']));

Regards
Vaclav Janoch

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

1 participant