Is there anything I can do or module that will save the line breaks in a post. I want to have the formatting saved if someone posts a paragraph and then breaks a new line for a new paragraph. I understand they can do this with the bold tag, but I would like for it to be done with out having to add the tag. Anyone have any thoughts on this?

Comments

B747’s picture

I'm not entirely sure what you mean. If you have your input filters set up correctly, then line breaks and paragraph breaks should be formatted automatically, ie just pressing 'Enter'/'Return' on your keyboard one or two times will do the trick. The bold tag just makes text bold, like that.

=======

Discover new modules, effectively search help and support with Heebie Drupal UberSearch. A must for any Drupal user - we promise you'll love it!

bm123’s picture

Sorry I meant the break tag not the bold tag. Maybe my input filters are set up wrong. Only the admin as the ability to select the input in the drop down tag that has. HTML, PHP, formatting etc on this site. It is saving the line breaks but it is not saving the spaces between paragraphs (double line break) it is just putting them on the next line. Is there anyway to set this up so it will save double line breaks instead of using the break tag twice?

Example..

test

test

test

I have put double line break on all of these, on my site they just fall one right after the other with no space. It is not formatting them correctly when users post content.

B747’s picture

So you put exactly the same in drupal.org and your site and your site formats it differently? If you have left input filters as they are, then the only thing I can suggest is CSS. What theme are you using?

Discover new modules, effectively search help and support with Heebie Drupal UberSearch. A must for any Drupal user - we promise you'll love it!

bm123’s picture

When I put

test

test

test

on my site it looks like this when the content is submitted..

test
test
test

no line breaking at all.

I tried changing it to "Full HTML" and no go still doesn't format it correctly when a user posts content. I am using a custom theme that I have build. Is there some way that I can go into the CSS file and change the formatting that way?

B747’s picture

To try and diagnose the problem, see if the same thing happens with the default Drupal theme. If not, then it looks like a theming problem.

Discover new modules, effectively search help and support with Heebie Drupal UberSearch. A must for any Drupal user - we promise you'll love it!

bm123’s picture

Thanks for your help, I tried the default Garland theme and the formatting worked fine. I noticed in my custom theme the different tags you can use like '<strong>' is not working either. Does anyone know what I can do in my theme to fix this theme issue? What might be causing this too happen?

bm123’s picture

Anyone have any advice on this? Thanks.

B747’s picture

There's probably a CSS declaration that deals with that kind of thing. I know nothing about CSS, so unfortunately my help ends here. Try seeing what another theme like Garland does, or base your theme from that.

Discover new modules, effectively search help and support with Heebie Drupal UberSearch. A must for any Drupal user - we promise you'll love it!

bm123’s picture

Hi

Sorry I don' mean to keep bumping this. I have been trying to find the problem with this for a few weeks now with no luck :(
Does anyone know what could be causing this issue. I looked at the source code and it is not putting any tags like '
' and '

' around the content when the post is made.

Can anyone help out?
Thanks