-
Bug
-
Resolution: Timed out
-
Low
-
None
-
5.8.18, 5.10, 6.0.2
-
1
-
Severity 3 - Minor
-
Summary
Adding an image and some text to a table field and then creating a link to the image + text, inserts a blank line before and after the image +text.
Steps to Reproduce
- Create a table, choose one table cell to work with and then do the following steps all in this table cell
- Add a picture to the cell
- Add text in the next line below the picture
- Select both and add a link to them --> The Editor will add empty lines below the text
- Remove the empty lines
- Go to the preview --> There is now a blank line above the image.
- Go back to the editor
- Save and reopen the page
Expected Results
There are no blank lines either above the image or below the text. HTML should be:
<tr> <td> <div class="content-wrapper"> <p> <a href="http://www.google.com"> <ac:image ac:height="250"> <ri:attachment ri:filename="IMG_7260.JPG"/> </ac:image> </a> </p> <p> <a href="http://www.google.com">text</a> </p> </div> </td> <td> <br/> </td> <td> <br/> </td> </tr>
Actual Results
A blank line is inserted above the image and below the text. HTML is:
<tr> <td> <div class="content-wrapper"> <p> <br/> </p> <p> <a href="http://www.google.com"> <ac:image ac:height="250"> <ri:attachment ri:filename="IMG_7260.JPG"/> </ac:image> </a> </p> <p> <a href="http://www.google.com">text</a> </p> <p> <br/> </p> </div> </td> <td> <br/> </td> <td> <br/> </td> </tr>
Workaround
Install the Confluence Source Editor and remove the extraneous <p><br></p> from above and below the image + text.