# Bug OP-12486 - Wrong spacing in Firefox when using line breaks in user content tables

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.5.4 |
| Observed in versions | 12.5.0 |
| Sprint | 12.5.4 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.5.x |
| 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

### Steps to reproduce

Create a table and insert line breaks using SHIFT+ENTER

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-p op-uc-table--cell">line1<br>line2<br>line3<br>line4</td></tr></tbody></table></figure>

### What is the buggy behavior?

Opening the result in Firefox shows an extra space above each line containing the line break:

<img class="op-uc-image op-uc-image_inline" style="width:83px;" src="/api/v3/attachments/55904/content">

### What is the expected behavior?

In every other browser (Chrome, Edge, Safari) the extra spacing is not visible:  
<img class="op-uc-image op-uc-image_inline" style="width:80px;" src="/api/v3/attachments/55906/content">

### Details

This ist a result of a `margin-top` css-attribute added to all childs in the tables. Most browsers ignore margins on `<br>` only Firefox applies it:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/55908/content">

### Environment information

**OpenProject installation type**

*   [x] Hosted cloud edition
*   [x] Docker All-in-one container

**OpenProject version**

_v12.5.3 but the problem is at least 1 year old_

**Browser**

*   [x] Firefox
