# Bug OP-14647 - Macros text should wrap

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

## Open points

_No work packages_

## Details

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

1.  Create a work package with a long title
2.  In a rich text editor, type some text and use the macro `###wp_ip` to display a link and a description to the work package. For instance: "This is described in ###1234. Please refer to it for more details."
3.  Reduce the window size so that there is not enough space to display the macro on a full line

### What is the buggy behavior?

  - The macro is displayed as an inline block on its own line. There are gaps in the text flow as if there was 3 paragraphs.

### What is the expected behavior?

1.  The text should flow and be displayed as one paragraph

### Screenshots and other files

The macro used with width smaller than macro width:

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

The same one with `display: inline` being used instead of `display: inline-block`:

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

### Environment information

**OpenProject version**

OpenProject 13.4
