CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal creates automatic "breaks" - how to stop?
Pages: [1]

Author Topic: Drupal creates automatic "breaks" - how to stop?  (Read 1247 times)

FETmz

  • I’m new here
  • *
  • Posts: 18
  • Karma: -1
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.21
  • MySQL version: 5.5.31
  • PHP version: 5.3.10-1ubuntu3.6
Drupal creates automatic "breaks" - how to stop?
May 08, 2013, 06:17:32 pm
I notice when I update the CSS code to the side bar the layout of that form changed.
Drupal tends to automatically create <br> [breaks] where it deems is suitable.
How can I permanently remove these?
A custom CSS file was developed to override it, it worked until there was more added onto the side bar form and now that same CSS code will not work.

I was wondering if any one knew any work arounds, or had a permanent solution?
 
Thank you in advanced!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Drupal creates automatic "breaks" - how to stop?
May 09, 2013, 11:36:21 am
I'm not sure what aspect of CiviCRM you are referring to. Are you talking about a Civi block? Or a Drupal block interfering with the Civi page content?
Try asking your question on the new CiviCRM help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal creates automatic "breaks" - how to stop?
May 09, 2013, 11:43:29 am
FETmz, it's not clear what exactly is happening. Can you describe in more detail?

But note that when you enter content into a Block or Node in Drupal, then depending on the Drupal Input Format, Drupal may convert line breaks to <br> tags.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

FETmz

  • I’m new here
  • *
  • Posts: 18
  • Karma: -1
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.21
  • MySQL version: 5.5.31
  • PHP version: 5.3.10-1ubuntu3.6
Re: Drupal creates automatic "breaks" - how to stop?
May 12, 2013, 10:36:05 pm
Sorry I apologise, Yes, its when I enter code into the Block, I never manual coded any breaks into the section and yet that's when Drupal automatically adds in the <br> tags.

It was overridden with this small code:

#sideblock br {
   display:none;
}

and worked, until I added more code. Is there a section where I can stop Drupal from automatically entering the <br> tags?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal creates automatic "breaks" - how to stop?
May 13, 2013, 04:31:46 am
See http://drupal.org/documentation/modules/filter
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

FETmz

  • I’m new here
  • *
  • Posts: 18
  • Karma: -1
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.21
  • MySQL version: 5.5.31
  • PHP version: 5.3.10-1ubuntu3.6
Re: Drupal creates automatic "breaks" - how to stop?
May 15, 2013, 10:33:59 pm
Solution:

Drupal menu -> configuration -> text formats-> [Full HTML] configure -> uncheck the box that say: “Convert line breaks into HTML (i.e. <br> and <p>)”

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal creates automatic "breaks" - how to stop?

This forum was archived on 2017-11-26.