I am very sorry if I had misread the code as I am not well-versed in regexp. For the filter module (lines 982-1003) where the line break filter kicks in, does it check for the windows line break (\r\n) and the mac line break (\r)? I am having some problems with the line break filter not creating the <p> and <br /> tags. Thanks a lot for your help! =)

Comments

DriesK’s picture

Take a look at check_markup() in filter.module. You'll see that before the filters are applied, all windows and mac line breaks are converted into single newlines.

Can you give some more information on your problem? When does it happen? Always?

DriesK’s picture

I didn't see that you marked this as a 4.6.5 issue. In 4.6.x, you should be looking at check_output(), not check_markup() (function name changed).

jmarki’s picture

Title: Does the line break filter filters out \r\n and \r? » Turns out to be a HTMLArea Issue
Category: bug » support
Priority: Normal » Minor
Status: Active » Closed (fixed)

After fiddling with the settings, I just found out that HTMLArea is the one causing the problem. Disabling that, and making sure the html filter (which I set to filter away all html) is processed before the line break filter by setting different weights solved the problem. Thanks a lot for your help! =)

Jmarki