---
schema_version: "1"
id: 4d3bd91b6f37bf34e3bd1d5e89b1b25adbf9db421a1262a2891427ec78c5170a
title: Page Break Behavior with Conditional and Repeating Tokens in Omnistudio Document Generation
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/doc_gen_page_break_behavior_with_tokens.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.doc_gen_page_break_behavior_with_tokens.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ec8fbbc1fcfbe33d3724e4ba8924b55b58a33baab809e118ca078f53d51e6a05
description: Guidelines to prevent blank pages and layout issues when adding page breaks to document templates that include conditional or repeating tokens.
products:
  - Omnistudio Doc Gen
release: "264"
---
# Page Break Behavior with Conditional and Repeating Tokens in Omnistudio Document Generation

Guidelines to prevent blank pages and layout issues when adding page breaks to document templates that include conditional or repeating tokens.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

## Page Break Placement Guidelines

Page break behavior depends on where the break appears relative to token boundaries.

- Placing a page break before the start of a conditional or repeating token can insert a blank page when the condition evaluates to false.
- Placing a page break after the end of a conditional or repeating token can also create a blank page if no content renders.
- Placing page breaks between sections or conditions avoids unintended blank pages and preserves document flow.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-document_generation-264-0-0-production-enus/f76d5573-56ce-4576-b4b2-7a4f1f2e622b/images/icon_note.png)

Note When optional or repeatable content requires a new page, place the page break between sections rather than directly next to token start or end markers.

## Token Spacing Guidelines

Blank pages can occur when multiple conditional tokens appear consecutively with empty lines or spaces between them. The document generation engine can interpret the empty space as content, which results in an unintended blank page.

- Remove empty lines or paragraph breaks between adjacent conditional tokens.
- Keep conditional token blocks closely grouped.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-document_generation-264-0-0-production-enus/f76d5573-56ce-4576-b4b2-7a4f1f2e622b/images/icon_example.png)

Example

Token format that can result in a blank page:

- {{IF\_token1}}
- {{/IF\_token1}}
- {{IF\_token2}}
- {{/IF\_token2}}

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-document_generation-264-0-0-production-enus/f76d5573-56ce-4576-b4b2-7a4f1f2e622b/images/icon_example.png)

Example

Recommended token format without spacing:

- {{IF\_token1}}
- {{/IF\_token1}} {{IF\_token2}}
- {{/IF\_token2}}