guys,

when drupal receives the table data, it puts some filters in it. Table Manager tries to take then off to show the table correctly.

the code (in tablemanager_add_submit and tablemanager_edit_submit functions):

    if (substr($temp, 0, 3) == "<p>" && substr($temp, -4, 4) == "</p>") {
      $temp = substr($temp, 3, -4);
    }

should be replaced by:

    if (substr($temp, 0, 3) == "<p>" && substr($temp, -25, 4) == "</p>") {
      $temp = substr($temp, 3, -25);
    }

the reason is that Drupal puts </p> <br class="clear" /> in the and, not only </p>

regards

massa

Comments

pobster’s picture

Status: Needs review » Closed (won't fix)

That's not a bug - it's how its supposed to be? Again, you're jumping to conclusions without actually testing anything...

When you use 'filtered html' the tags which are added are <p> and </p> which of course are stripped out as 'filtered html' is a nice safe entry filter designed for anonymous and non-admin users and tablemanager needs to strip them to display nicely.

If you use 'full html' then Drupal adds <p> and </p> <br class="clear" /> and displays as a 'full html' entry should be with a linebreak? By definition 'full html' means you're going to do something other than enter just 'some text', so the linebreak is completely necessary?

Pobster

pobster’s picture

Status: Closed (won't fix) » Closed (fixed)