My bulleted (unordered) lists are looking wrong since installing HTML corrector.

<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li></ul>

gets changed to:

<ul>
</ul><li>item 1</li>
<li>item 2</li>
<li>item 3</li>

Disabling the HTMLC input format fixes the problem, but obviously I lose HTML's other benefits.

Thanks for your help.

Comments

jsg’s picture

Sorry, that should of course say "...but I lose HTMLC's other benefits."

jsg’s picture

Just so you can see the effect, the first example above is rendered thus:


  • item 1
  • item 2
  • item 3

and the second example thus:
  • item 1
  • item 2
  • item 3
  • jsg’s picture

    Priority: Normal » Critical

    This is preventing me using the module, so I hope you won't mind me upgrading this bug to critical.

    Steven’s picture

    Status: Active » Closed (won't fix)

    I cannot reproduce locally. HTMLCorrector leaves ul/li structures well alone as long as they are nested correctly. Make sure there is no other filter interfering with htmlcorrector...

    jsg’s picture

    Category: bug » task
    Priority: Critical » Normal
    Status: Closed (won't fix) » Active

    I'm happy to report that Steven's comment (about other filters interfering) enabled me to solve the problem. The solution was to make the HTMLC filter operate just before the BBCode filter, instead of just after it. In other words, in admin / input formats / configure / rearrange, give the HTMLC filter a weight one less than the BBCode filter. Could I suggest documenting this interaction in the next release of the module?