# Bug OP-12332 - XLS export of work package with description cannot be opened by Excel if the description contains a table

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.5.3 |
| Observed in versions |  |
| Sprint | 12.5.3 |
| 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

### Steps to reproduce

1.  Create a new project
2.  Create a work package with a table in its description
3.  Go to the work packages list and export XLS with description
4.  Try to open the file in Excel (latest version as of April 2023)

### What is the buggy behavior?

  - Excel shows an error when opening the file
  - It offers to restore the corrupt data
  - Everything after the work package description in question will be empty in the sheet

LibreOffice can open the sheet just fine but it would be good to find a way to support excel too. I reckon having all this HTML in the sheet doesn't really help in any case:

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

Here is what Excel users will see:

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

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

### What is the expected behavior?

Excel should be able to open the sheet and display all data.

### Environment information

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

v12.5.2
