Bug 577869 - Confluence multi line tables cells are not rendered and parsed correctly
Summary: Confluence multi line tables cells are not rendered and parsed correctly
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0.42   Edit
Assignee: Conor OKelly CLA
QA Contact: Leo Dos Santos CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2021-12-17 10:07 EST by Conor OKelly CLA
Modified: 2022-01-06 17:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Conor OKelly CLA 2021-12-17 10:07:28 EST
There are two bug details below related to parsing and writing multi-line tables cells.

1. Multi-line tables cells with lines with no whitespace

* Given the following markup below we would expect to see two table cells. The second cell should contain the letters a, b and c each on their own line

```| cell 1 | a\\b\\c |```

This will be rendered as the with the first `\\` present as "a\\b" followed by C on a new line. It seems that using the `\\` character for a line break was the incorrect choice. Instead we should use the Line Feed character `\n`

Below is the markup create if the table it built from the UI:

```|cell 1|a
b
c|```


2. Multi-line tables cells with lines for empty lines.

In the following use case we have a multi-line cell where one of the lines is empty. Depending on the version of Jira this might not display correctly if create from the UI.

In order to support this empty line with in along with using the `\n` for the line breaks we need to insert a NO-SPACE break. The following markup below has such a character and displays correctly on all versions of Jira.

```|cell 1|a
 
c|```

This issue can be further complicated that the newer UI in Jira my not include the required space in Cloud version but will render correctly when one in present.
Comment 2 Conor OKelly CLA 2022-01-06 17:20:46 EST
Closed with the merge of https://git.eclipse.org/r/c/mylyn/org.eclipse.mylyn.docs/+/188922/3
Comment 3 Leo Dos Santos CLA 2022-01-06 17:22:41 EST
Thank you for the contribution Conor.