[support] (no subject)
puregin
puregin at puregin.org
Thu Dec 15 18:13:06 UTC 2005
You should be able to configure an input format that simply does not
include the linebreak converter.
admin>>filters>>[configure]
Select the filters that you want (skip the linebreak converter) and
then arrange them in the
order you want.
Djun
On 15-Dec-2005, at 7:03 AM, salvador at progressivetrail.org wrote:
> Posted to Forums -> "How do I..." and mailed to support
>
> Not sure if I should've sent this to the developer's list.
>
> I've got some scripts that build story nodes from plaintext files.
> The files, unfortunately, have linebreaks in bizarre places. Drupal
> handles the paragraphs correctly when converting to HTML, but I
> would like to remove entirely the piece that converts linebreaks to
> '<br />' tags.
>
> I had assumed that this was taking place in "function _filter_autop
> ($text)" in filter.module, but after removing every preg_replace
> call that involved '<br />' tags, (e.g., "$chunk = preg_replace('|
> <br />\s*|', "\n\n", $chunk);") from that function, I found that
> drupal was still inserting the unwanted linebreaks.
>
> Can someone please tell me where this is happening in drupal? I've
> been grepping myself silly trying to find it.
> --
> [ Drupal support list | http://lists.drupal.org/ ]
More information about the support
mailing list