conflict with linebreak filter
csmanoj - October 6, 2009 - 16:27
| Project: | Code Filter |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
In a setup where codefilter processes before linebreak filter, if linebreak filter finds multiple newlines, it inserts a <p> tag (nested inside the <code> tags), causing a discontinuation in style (because <p> tag might have it's own styling).
For example
#include <stdio.h>
<!--if this line is blank, linebreak will add a <p> here-->
int main(void)
{
printf("Hello world!");
return 0;
}We don't want linebreak to insert anything inside the <code> tags. And we don't want to put linebreak before codefilter because of the invalid XHTML problem.
I'm suggesting a fix. Patch attached (see comment in patch).
| Attachment | Size |
|---|---|
| newline_edit.patch | 614 bytes |
