Issue Bug Closed

#78705RTE converts spaces into nbsp before/after ul, ol in table cells

Piotr Łojewski 11/15/16, 15:20 updated 04/12/18, 11:19

Description

When I’ve got code like this:

<table><tr><td><ul><li>Item</li><li>Item</li><li>Item</li></ul></td></tr></table>

it works fine until I switch to HTML or disable rte at all and add spaces before and after ul, ol (or it is added by TinyMCE when is enabled):

<table><tr><td> <ul><li>Item</li><li>Item</li><li>Item</li></ul> </td></tr></table>

it converts in FE into code like this:

<table>
  <tr>
      <td>
         &nbsp;
         <ul>
            <li>Item</li>
            <li>Item</li>
            <li>Item</li>
         </ul>
         &nbsp;
      </td>
   </tr>
</table>

Have you got any idea please?

This works the same in 7.6.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.