Skip to main content
Participating Frequently
July 8, 2021
Question

Remove extra space for empty data field in mail merge

  • July 8, 2021
  • 1 reply
  • 2928 views

When there is no data in the Title field it leaves an empty space to the left of the First Name. How can I remove this empty space? The "remove empty lines" does not work for this. 

Example:

<<Title>> <<First Name>> <<Last Name>>

<<Address>>

<<City>> ,<<State>> <<Zip>>

 

Results in leaving an extra space when there is no Title data.

 First Name

Address

City, State, Zip

This topic has been closed for replies.

1 reply

Community Expert
July 8, 2021

A space is generated in this situation, so you can use this workaround:

Perform merge creating new document > do a grep search for [beginning of paragraph][space] and replace with nothing.

This will delete the unwanted space for no titles.

Participating Frequently
July 8, 2021

Thank you! Giving that a try now! I was merging right to PDF because when I try to save the merge as an .indd it crashes. 😞 I'll update feedback shortly...

Participating Frequently
July 8, 2021

Unfortunately my InDesign crashed again when I try to create a merged doc and not a PDF. Ugh. Do you know if the same grep search would work in Acrobat to edit the PDF?