---
title: "Control blank links in conditional content"
description: "Control blank lines in conditional content so generated documents remove empty lines and maintain clean formatting without unwanted gaps."
canonical_url: "https://resources.docmosis.com/template-tutorials/conditional-sections-2"
last_reviewed: 2026-06-08
---

# Control blank links in conditional content

[Conditional Sections](/template-tutorials/conditional-sections) covered how to add or remove content from the final document.

When a conditional section returns false and content is removed, there is sometimes a blank line left behind.

Blank lines can be controlled by changing the way you lay out the conditional sections in your templates.

**Important:** To understand these examples, turn on the hidden characters within your editor to reveal where the paragraph markers **¶** are located in your template.

## Controlling the appearance of blank lines

The examples below use conditions sections that will always evaluate as either true or false, but they could equally be \<\\> returns true, the relevant text will appear.

The \<\\> returns false, and a blank line remains even though the text is removed.

When the \<\\>This text will be included on its own line. \<\\>

Below

Above

\<\\>This text will not be included. The blank line WILL REMAIN. \<\\>

Below

Example 2

Above

\<\\>

This text will be included on its own line.

\<\\>

Below

Above

\<\\>

This text will not be included. The blank line WILL BE REMOVED.

\<\\>

Below

**Using Conditional Sections in Numbered/Bullet lists**

Example 3

- Above

\<\\>

- This text WILL BE included on its own line.

\<\\>

- Middle

\<\\>

- This text will not be included. The blank line WILL BE REMOVED.

\<\\>

- Below
```