Recent Topics

1 Apr 19, 2006 06:00    

Hey,

This hack will fix the auto-p plugin so it will display the HR, FIELDSET, and CODE tags properly.

E.g. This is what currently happens:

<fieldset>

becomes

<p> <fieldset></p>

To apply the fix do this;

Change - File [\blogs\plugins\_auto_p.plugin.php] Line [95];

		$this->block_tags = $block_tags = 'table|thead|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6]';

To;

		$this->block_tags = $block_tags = 'table|thead|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|code|hr|fieldset|p|h[1-6]';

Thanks
-balupton

2 Apr 22, 2006 03:33

Just committed, thanks!

btw: that reminds me that I have a quite different auto_p plugin locally to fix the issue that the "P-magic" only happens inside of blocks, which currently gets done by some very hackish code.

But, it's not that easy and needs some kind of tag/token/state parser.


Form is loading...