[drupal-support] <pre> html tag broken in Drupal
The <pre> tag doesn't allow to have format tags like <br> or <p> but Drupal keeps adding them to the text I insert in a block. There's a way to prevent Drupal to add those tags and leave what's within a <pre> block untouched? -HRose / Abalieno
Hi Abalieno, you probably need to tweak your input formats. Go to administer -> input formats, and either turn off line break converter for the format you use, or create a new format with line break converter turned off. Cheers! Quoting Abalieno <abalieno@cesspit.net>:
The <pre> tag doesn't allow to have format tags like <br> or <p> but Drupal keeps adding them to the text I insert in a block. There's a way to prevent Drupal to add those tags and leave what's within a <pre> block untouched?
-HRose / Abalieno -- [ Drupal support list | http://lists.drupal.org/ ]
Hi Abalieno,
you probably need to tweak your input formats. Go to administer -> input formats, and either turn off line break converter for the format you use, or create a new format with line break converter turned off.
Okay, but it's still a broken feature. A <pre> block should ALWAYS bypass the line breaks. In every condition since it's exactly how the html tag is defined. I can disable the line breaks for the WHOLE node but I'd like Drupal to keep doing that and bypass the line breaks only when dealing with the <pre> tag. This is supposed the default behaviour and should be considered as a bug. -HRose / Abalieno
Abalieno wrote:
The <pre> tag doesn't allow to have format tags like <br> or <p> but Drupal keeps adding them to the text I insert in a block. There's a way to prevent Drupal to add those tags and leave what's within a <pre> block untouched?
As of 4.6 RC this should be the behaviour of Drupal. It was changed a couple of weeks ago. If you still get this with 4.6 RC then you might have some conflicting filters. Get the latest of all contrib filters too. Steven Wittens
participants (3)
-
Abalieno -
Djun Kim -
Steven Wittens