Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore receipt shows \r\n at the beginning of new line
- This topic has 8 replies, 3 voices, and was last updated 4 years, 8 months ago by
wzp.
-
AuthorPosts
-
February 23, 2021 at 1:46 pm #82611
Katharina
ParticipantHi there,
I’m using the receipt addon. Everything works fine (translation file would have been helpful), just the PDF customer can download shows the return information \r\n at the beginning of a new line. This occurs in the heading area only where the company information is located.Looks like this
===
Jo van Nelsen Online-Shop
Jo van Nelsen
\r\nBüro Jo van Nelsen
\r\nSeilerstraße 10
\r\n60313 Frankfurt amMain
\r\nshop@jovannelsen.de
\r\nUSt-Identnummer: DE111174479
===Could you pls assist on where to delete this? Thanks.
Best regards
KatharinaFebruary 23, 2021 at 5:32 pm #82614wzp
ModeratorEverything works fine (translation file…
Did you change anything? Also, does the receipt body contain any of those characters?
-
This reply was modified 4 years, 8 months ago by
wzp.
February 23, 2021 at 6:23 pm #82617admin
KeymasterThis is most likely coming from a conflict. Do the following test:
February 24, 2021 at 1:05 am #82620Katharina
ParticipantThanks.
In the create-reciept-pdf.php I changed in row #219 the Column titles to have them in German.February 24, 2021 at 1:11 am #82621Katharina
ParticipantPlease be assured – I checked this before posting here. No caching plugin on site. All plugins deactivated: \r\n stays at the beginning of new line in the area company information
February 24, 2021 at 1:12 am #82622Katharina
ParticipantYes, this ony happens in the company details area; body of receipt is fine
February 24, 2021 at 4:13 pm #82626wzp
ModeratorIn the create-reciept-pdf.php [sic] I changed in row #219 the Column titles to have them in German.
When you did the editing… did you save the file as a UTF-8 encoded file??? Does using THE ORIGINAL file make any difference???
February 25, 2021 at 2:23 am #82631Katharina
ParticipantThanks for your help.
The original file has the same output with \r\nThe file I changed was saved as UTF-8
Seems to be a Mac problem – I checked with a PC: everything is fine.
I will leave it as it is, you may close the topic.
Best regards
KatharinaFebruary 25, 2021 at 3:56 pm #82634wzp
ModeratorNote to future self: Issue may be caused by Mac O/S being *nix based.
-
This reply was modified 4 years, 8 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.