# Lay out - page break

**URL:** <https://community.silverfin.com/t/lay-out-page-break/126>\
**Category:** Templates\
**Tags:** style, group\
**Created:** [March 15, 2017, 5:40pm UTC](https://community.silverfin.com/t/lay-out-page-break/126 "2017-03-15T17:40:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Finivo](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@Finivo](https://community.silverfin.com/u/Finivo)\
**Post date:** [March 15, 2017, 5:40pm UTC](https://community.silverfin.com/t/lay-out-page-break/126/1 "2017-03-15T17:40:42Z")

</div>

Hi,

I have the following question:

I’ve adapted the code of ‘verslag van de zaakvoerder’ but when I’ve made a PDF the end of the page appears inside a paragraph.  
I have sometimes the title and first phrase on one page and the rest on the next page.

Is there a way to keep the paragraph as a block? That If the paragraph doesn’t fit entirely on a page it switches to the next page.

Thanks.  
Christelle

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [April 2, 2017, 11:50am UTC](https://community.silverfin.com/t/lay-out-page-break/126/2 "2017-04-02T11:50:00Z")

</div>

Hello @Finivo,

What you can do, is use the group-tags : {::group} and {/group}

everything between these tags, will always stay together.

Could this fix your problem? If not, just paste the code here and I’ll have a look at it.

---

<div class="post-metadata">

**Author:** ![Finivo](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@Finivo](https://community.silverfin.com/u/Finivo)\
**Post date:** [April 3, 2017, 6:46pm UTC](https://community.silverfin.com/t/lay-out-page-break/126/3 "2017-04-03T18:46:23Z")

</div>

Hello,

Is there a mistake in the tags you gave me ? When I put them around a block of text, they appear as is when previewing or generating a report.

I tried with {:group} and {:group} but then the block that was splitted by the page break simply disappears in the generated report. I also tried a trick with html tags but then some parts of the block are missing when generating, weird…

Thank you for your help.

Christelle

---

<div class="post-metadata">

**Author:** ![Mathias](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/mathias/32/125_2.png) [@Mathias](https://community.silverfin.com/u/Mathias)\
**Post date:** [April 24, 2017, 3:31pm UTC](https://community.silverfin.com/t/lay-out-page-break/126/4 "2017-04-24T15:31:49Z")

</div>

Hello @Finivo,

It is possible that there was a “ **:** ” missing in the previous post.

Could you please try with:

{::group}  
{:/group}

Kind regards,

Mathias

---

<div class="post-metadata">

**Author:** ![robin.bailleul](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/robin.bailleul/32/163_2.png) [@robin.bailleul](https://community.silverfin.com/u/robin.bailleul)\
**Post date:** [August 25, 2017, 11:49am UTC](https://community.silverfin.com/t/lay-out-page-break/126/5 "2017-08-25T11:49:52Z")

</div>

Forcing a page break can apparently be achieved by the tag `{% newpage %}`

While the `{::group} ... {:/group}` tags ensure that the text between them will be on a single page,  
it does _not_ insert a new page.  
For example:

```
{::group}
{{ foo }}
{:/group}

{::group}
{{ bar }}
{:/group}

```

will _not_ insert a page break between `foo` and `bar` when the text `foo` and `bar` can fit on a single page together;  
The following _will_ insert a page break between `foo` and `bar`

```
{::group}
{{ foo }}
{:/group}
{% newpage %}
{::group}
{{ bar }}
{:/group}
```
