• Resolved themandril

    (@themandril)


    I want to add line breaks here and there in my posts. I have tried everything. I thought I could just enter:
     
    and that would create an unbreakable line. It looks good in preview, but once saved, WP strips out all such breaks.

    Can anyone tell me how to add a line break in a post and have it stay there?

Viewing 11 replies - 16 through 26 (of 26 total)
  • jarris: best done in your style.css, where you can adjust how the first line of paragraphs will be displayed.

    Thx fur, i just finally figured that out my self. FYI You go into:
    presentation-> Theme Editor -> Stylesheet
    and insert this guy

    p {
    text-indent: 1em;
    }

    that will indent everything in a P tag. I was happy with this until I realized it automatically adds a P tag even when you don’t hit return (in rich text) and will put it back if you remove it from the html. I can’t figure out how to do get them not to auto-add. What would be best is if i could simply select an option to allow the HTML editing to overwrite ??

    Excuse me, but I use a Mac. Is there some other way to force a new line besides “shift-enter”? Isn’t that some sort of PC thing? Even using Safari my line breaks are stripped.

    It’s making me nuts. Also, I found the tiny_mce.js file but can’t figure out what from the following to change.

    Depending on your configuration, you might also have to edit the initialization settings in the js/tinymce/tiny_mce.js file and change these values to reflect:
    this.defParam("force_br_newlines", true);
    this.defParam("force_p_newlines", false);
    this.defParam("convert_newlines_to_brs", true);

    [snip]

    this.defParam("remove_linebreaks", false);'

    Can someone please explain this?

    I am having more trouble – I tried those edits in the .js file, and I’m still having the same exact behavior! Even though the trues and falses are set correctly, it still parses everything into a P. Do I have to set some sort of read-only or change something else?

    I’m wondering about this too. I’d like to use multiple line breaks as well, and not being able to do it as described here is problematic. Any advice graciously appreciated, thanxies!

    I ended up disabling the richtext editor and inserting in:

     <br><br>

    for extra lines.

    It won’t work with the richtext editor on.

    Oh rats, it removed my “& n b s p ;” (remove spaces).

    yeah, it removes everything. does anyone know how to tell the MCE to not reformat linebreaks? there must be some way to tell it to just replace line breaks with a non breaking space?

    themandril, thanks!
    I’ve been tearing my hair out over the editor stripping out <p> tags and generally screwing up all the breaks when i hit save.

    Got it sorted now, so cheers mate ??

    I was facing exactly the same problem, and modifying the tiny_mce.js file had absolutly no effect. It was really strange because I could see the
    in the wysiwyg editor html view even after saving a post, but when opening the post in my blog the
    were just gone !!

    Indeed we used Wordress 1.* for quite a long time on this blog, and so we used a lot the markdown syntax. So seeing that the Markdown plugin wasn’t bundled anymore with WordPress 2.0, I just tried to desactive the plugin and… Eureka, my
    then came in the source as expected !

    I then saw a post indicating the Markdown plugin wasn’t compatible with the tinyMCE editor : <https://www.michelf.com/weblog/2005/markdown-and-wordpress-2.0/&gt;

    Hope this could help some users who have the same problem…

    I’m fairly new to wordpress and experiencing the same difficulties with my editor automatically removing line breaks or paragraphs. I changed the Tiny MCE settings as suggested above but the changes had no effect on the editor. Like others everything looks good until I save the updates. Working in HTML doesn’t improve things.

    I am using a Mac, Firefox, and WP 2.0.5. Could this be a result of using a custom theme? Where might I look on within the theme’s files to make the changes that would allow manual entry of additional line breaks?

    FYI I have never knowingly used Markdown and I don’t have a Markdown plugin.

    Any help appreciated.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Cannot force line breaks in post!’ is closed to new replies.