Jump to content

Recommended Posts

Posted

When I'm doing a mail merge, Affinity doesn't seem to recognize Char 10 (line break).

I also tried Char 13 which some say works on Mac (I'm on Windows), but that didn't work any better.

What do I input in my spreadsheet to indicate a line break that Affinity Publisher will recognize?

Posted

Data Merge no longer recognizes any line break input (Excel-based, or hard coded Chr(10) or Chr(13)). The only workaround I know is using any custom code, e.g. <br> and then use Find Replace in Publisher to replace occurrences of <br> with the desired line break (e.g. both line and paragraph break are supported as codes in the Replace box).

Posted
9 hours ago, lacerto said:

Data Merge no longer recognizes any line break input...

Does that mean it once did so maybe this is a regression that should be reported as a bug?

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
7 hours ago, R C-R said:

Does that mean it once did so maybe this is a regression that should be reported as a bug?

I think it has been reported. Hard-coded LFs and CRs might be something that cause problems e.g. within CSV files so maybe they are now deliberately ignored/stripped (earlier they were not). 

Posted

I had a closer look on this, and the linefeeds are not actually stripped, but simply just do not take effect. So my assumption on them being stripped to avoid issues in processing text streams was wrong.

So, in version 1, this is what happens (CR = control code 13, hex OD, would probably work on macOS, while LF = control code 10, works on Windows), both in actual text boxes and labels previewing data in the Fields panel:

image.png.62efce9052abccf0c15a205713f82bd2.png

....while in version 2 (this, too, from Windows), the line feed codes are clearly part of the text stream but just do not have the line feed functionality:

image.png.933c411dac68492e4b66df6471e7d045.png

As shown above, the LF control code, when entered manually in a text box, still works fine, so it seems to be a deliberate act of ignoring the effect when line feeds are part of the data merge feature. Perhaps it is some kind of glitch, after all.

Posted
1 hour ago, EatMoreBacon said:

I will need to use codes that I find and replace after the merge?

Yes, if you use 2.x versions.

1 hour ago, EatMoreBacon said:

Or is Alt 010 something that can be inserted in Excel?

No, Num keys do not seem to work in Excel cells (basically using CHAR code or ALT+ENTER does the same within an Excel cell).

  • 3 months later...
Posted

This is a big minus in the Affinity V2 suite. In V1 Data merge worked like a charm. Now in V2 you have to do some find an replace Hacks, if you want to have Linebreaks in data merge fields. I hope, that this issue get fixed soon.

  • 10 months later...
  • Staff
Posted

The issue "Data merge ignores line breaks in CSV, TSV, JSON" (REF: AF-733) has been fixed by the developers in the latest beta build (2.6.0.3027). The fix is planned for inclusion in the next customer release.
Customer beta builds are announced here and you can participate by following these instructions.
If you still experience this problem once you are using that build version (or later) please reply to this thread including @Affinity Info Bot to notify us.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.