# Bug OP-1171 - Headlines in wiki table of content are broken

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-1171

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 3.0.4 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

**Precondition**

  - Wiki module is activated

**Steps to reproduce**

1.  Create a new wiki page or edit an existing one.
2.  Add a table of content to the wiki page (via <macro class="toc"></macro>)
3.  Enter a headline elements which do not follow after another (e.g. h1. followed by h3.)
4.  Click Save.
5.  (In the table of content of the wiki page, there are dots in front of the headline arrows. Headlines which have been “skipped” (e.g. h2., when h3. follows h1.) are displayed as empty line (see screenshot))

**Actual behavior**

  - Dots are displayed in front of the headline arrows.
  - There are empty lines displayed when headline types have been “skipped”.

**Expected behavior**

  - No dots are displayed in front of the headline arrows. 
  - There are no empty lines displayed when headline types have been “skipped”.

**Screenshot**  
![](Bug_Wiki.png)
