# Paragraphs, line breaks and hr in Confluence storage

URL: https://goingstellar.ro/reference/confluence-storage-format/paragraphs-line-breaks/

A paragraph is a p element, a line break is br and a horizontal rule is hr. They map to the ADF paragraph, hardBreak and rule nodes. Text outside any paragraph is accepted by storage, and an ADF save wraps it in p.

## Storage format

```xml
<p>Paragraph 1</p><p>Paragraph 2</p>
<p>Line 1 <br /> Line 2</p>
<hr />
```

## As ADF (Confluence Cloud)

The ADF that Confluence Cloud builds for:

```xml
<p>Line 1 <br /> Line 2</p>
```

```json
{
 "type": "doc",
 "content": [
  {
   "type": "paragraph",
   "content": [
    {
     "text": "Line 1 ",
     "type": "text"
    },
    {
     "type": "hardBreak"
    },
    {
     "text": " Line 2",
     "type": "text"
    }
   ]
  }
 ],
 "version": 1
}
```

## Examples

Storage format sent:

```xml
<p>Paragraph 1</p><p>Paragraph 2</p>
```

Two paragraphs as the documentation shows. Each is its own ADF paragraph node.

Rendered view (HTML):

```html
<p>Paragraph 1</p><p>Paragraph 2</p>
```

Storage format after the round trip through ADF:

```xml
<p>Paragraph 1</p><p>Paragraph 2</p>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<p>Line 1 <br /> Line 2</p>
```

A line break inside one paragraph. The spaces around br stay in the text on both sides.

Rendered view (HTML):

```html
<p>Line 1 <br/> Line 2</p>
```

Storage format after the round trip through ADF:

```xml
<p>Line 1 <br /> Line 2</p>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<hr />
```

A horizontal rule. The view renders it as a self-closing element and ADF calls it rule.

Rendered view (HTML):

```html
<hr/>
```

Storage format after the round trip through ADF:

```xml
<hr />
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
bare text without paragraph
```

Text sent with no wrapper element. Storage keeps it bare, and the ADF save adds a paragraph.

Rendered view (HTML):

```html
bare text without paragraph
```

Storage format after the round trip through ADF:

```xml
<p>bare text without paragraph</p>
```

Sent to Confluence Cloud on 29 Nov 2026.

## What changes in conversion

- p maps to paragraph, br to hardBreak and hr to rule. All three come back in the same form.
- Whitespace around a br is part of the text. The ADF text nodes keep Line 1 with a trailing space and Line 2 with a leading space.
- Bare text is not wrapped on a storage save. It is wrapped only when the content has been through ADF.

## Pitfalls

- Use separate p elements for paragraph spacing. A br gives a line break without the paragraph gap.
- Bare text works in storage, but tools that expect every block to be an element see two shapes of the same page.
- The documentation notes that a line break is created in the editor with Shift and Enter.

## Questions and answers

### How do I add a line break in storage format?

Use a br element inside a paragraph, written as <br />.

## Related

- [<h1> to <h6> headings](https://goingstellar.ro/reference/confluence-storage-format/headings/)
- [<blockquote>](https://goingstellar.ro/reference/confluence-storage-format/block-quote/)
- [Entities and special characters](https://goingstellar.ro/reference/confluence-storage-format/entities-special-characters/)
- [Alignment and indentation](https://goingstellar.ro/reference/confluence-storage-format/alignment-indentation/)
- [<ul> and <ol> lists](https://goingstellar.ro/reference/confluence-storage-format/bullet-numbered-lists/)

## Sources

- [Confluence storage format (Atlassian Documentation)](https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html)
- [Atlassian Document Format: document structure (Atlassian Developer)](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/)

