Answers.Body: <p>The issue isn't 100% clear because your formatting doesn't allow me to perfectly understand which tokens have a line break after them and which have a space - but I'm pretty sure I know what's going on.
  By default, if a token evaluates to NULL and there is NOTHING else on that line, the line will be omitted entirely when producing address labels.</p>
  
  <p>However, from your token listing, it seems that you have a space after <code>{contact.supplemental_address_1}</code>.  That's going to cause a space on the line, even if there's no supplemental address value.</p>
  
  <p>If for formatting reasons you need a space there if there IS a supplemental address, there's a trick.  Let's look at the default mailing address format:</p>
  
  <pre><code>{contact.addressee}
  {contact.current_employer}
  {contact.street_address}
  {contact.supplemental_address_1}
  {contact.supplemental_address_2}
  {contact.city}{, }{contact.state_province}{ }{contact.postal_code}
  </code></pre>
  
  <p>Note the <code>{, }</code> after the city and the <code>{ }</code> after the state/province.  It's not well-documented, but that means, "include a ', ' after the city if a city exists" and "include a space after the state/province if a state/province exists".</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-12T13:03:36.483Z
Answers.Text: I have this same issue.   Mailing labels work as described.  However, Printing pdf letters using the same contact address includes a blank line for a null field - e.g. supplemental address.
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-05T12:44:52.763Z
Answers.Text: Same for me, a lot of my contacts have a blank supplemental address field, I use this token in a document and it results in a blank line, even if the token is the only thing on its line.
Answers.UserDisplayName: Florian Motteau
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-20T07:05:30.950Z
Answers.Text: I found a client with the same problem in PDFs. In their case they had used <BR> rather than <p> tags to end the lines!
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-17T20:12:21.997Z
Answers.LastActivityDate: 2015-12-17T20:12:21.997Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Check your template html and ensure you are using <code>&lt;p&gt;</code> not <code>&lt;BR&gt;</code> tags to end the lines</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-20T07:06:31.690Z
Answers.LastActivityDate: 2017-06-21T12:46:17.923Z
Answers.LastEditDate: 2017-06-21T12:46:17.923Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>I'm a bit confused by some of the comments above which refer to labels which seem to be a different mechanism. I think that my answer to <a href="https://civicrm.stackexchange.com/questions/7321/removing-carriage-returns-after-a-blank-address-field/20872#20872">Removing Carriage returns after a blank address field?</a> solves the problem.</p>
  
  <p>I found removing the space before BR markup didn't solve the problem and that using P markup instead of BR markup mean the lines were spaced too far apart</p>
  
  <p>I also appreciate the problem of formatting answers particularly when there is markup in it. I could not make this look right! </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-13T22:38:23.300Z
Answers.LastActivityDate: 2017-10-13T22:38:23.300Z
Answers.UserDisplayName: Mick Kahn
Body: <p>When adding all of the address fields in a PDF letter i am getting a blank line for supplemental address line 1 if that user does not have that field populated. Is there any way to avoid having a blank line? i am doing a large mail merge using this and it does not look professional to have a blank line in the address block. Here is how i have the tokens setup.</p>
  
  <p>{contact.display_name}
  {contact.current_employer}
  {contact.street_address}
  {contact.supplemental_address_1}
  {contact.city}, {contact.state_province} {contact.postal_code}</p>
  
Tags: <tokens><pdf><address-labels>
Title: Address line blank in pdf letter
ThreadText: # Address line blank in pdf letter
  
  (Asked by: username_0 on 2015-12-17)
  
  When adding all of the address fields in a PDF letter i am getting a blank line for supplemental address line 1 if that user does not have that field populated. Is there any way to avoid having a blank line? i am doing a large mail merge using this and it does not look professional to have a blank line in the address block. Here is how i have the tokens setup.
  
  {contact.display\_name}
  {contact.current\_employer}
  {contact.street\_address}
  {contact.supplemental\_address\_1}
  {contact.city}, {contact.state\_province} {contact.postal\_code}
  
  **Tags:** tokens, pdf, address-labels
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-12-17. Score: 4
  
  The issue isn't 100% clear because your formatting doesn't allow me to perfectly understand which tokens have a line break after them and which have a space - but I'm pretty sure I know what's going on.
  By default, if a token evaluates to NULL and there is NOTHING else on that line, the line will be omitted entirely when producing address labels.
  
  However, from your token listing, it seems that you have a space after `{contact.supplemental_address_1}`. That's going to cause a space on the line, even if there's no supplemental address value.
  
  If for formatting reasons you need a space there if there IS a supplemental address, there's a trick. Let's look at the default mailing address format:
  
  ```
  {contact.addressee}
  {contact.current_employer}
  {contact.street_address}
  {contact.supplemental_address_1}
  {contact.supplemental_address_2}
  {contact.city}{, }{contact.state_province}{ }{contact.postal_code}
  
  ```
  
  Note the `{, }` after the city and the `{ }` after the state/province. It's not well-documented, but that means, "include a ', ' after the city if a city exists" and "include a space after the state/province if a state/province exists".
  
  > **Comments:**
  > **username_2**: I have this same issue.   Mailing labels work as described.  However, Printing pdf letters using the same contact address includes a blank line for a null field - e.g. supplemental address.  
  > **username_3**: Same for me, a lot of my contacts have a blank supplemental address field, I use this token in a document and it results in a blank line, even if the token is the only thing on its line.  
  > **username_4**: I found a client with the same problem in PDFs. In their case they had used <BR> rather than <p> tags to end the lines!  
  
  ---
  
  ### Answer by username_4 on 2017-06-20. Score: 3
  
  Check your template html and ensure you are using `<p>` not `<BR>` tags to end the lines
  
  
  ---
  
  ### Answer by username_5 on 2017-10-13. Score: 0
  
  I'm a bit confused by some of the comments above which refer to labels which seem to be a different mechanism. I think that my answer to [Removing Carriage returns after a blank address field?](https://civicrm.stackexchange.com/questions/7321/removing-carriage-returns-after-a-blank-address-field/20872#20872) solves the problem.
  
  I found removing the space before BR markup didn't solve the problem and that using P markup instead of BR markup mean the lines were spaced too far apart
  
  I also appreciate the problem of formatting answers particularly when there is markup in it. I could not make this look right!
  
  
  ---
  
  