Page 1 of 1
How make entries wrap in p-tags?
Posted: Wed Jan 16, 2008 6:26 pm
by danne
Hi,
As far as I see, "paragraphs" in entries aren't wrapped inside any tag at all. When I like to create a space between these "paragraphs", I need to hit carriage return (Enter key) twice which will create wto <br /> tags, as a substitute for real paragraph space.
This makes the space between two "pargraphs" too spacious for my taste.
I have tried to style the <br /> tags, and it works so-so in IE and FF, but it's not very kosher.
Eventuellay, I have arrived at a question: Is there any way to make Serendipity create real paragraphs inside p-tags?
Cheers,
Dan
Posted: Wed Jan 16, 2008 6:47 pm
by judebert
I use the HTML editor, so I use paragraph tags directly. If you also use the HTML editor, the lack of space between paragraphs is a problem with the template, which can be fixed by modifying its stylesheet.
If you use one of the WYSIWYG editors, you may not be getting paragraphs. That's a problem with the editor, and Serendipity doesn't modify any of that code; we just include it, as-is. I'm afraid that styling the breaks is the only solution to that.
You may also want to be aware of the NL2BR markup plugin. It converts all your carriage returns to <br /> tags. So if you're inserting to carriage returns, and NL2BR is enabled, you'll actually get four <br /> tags. If you turn the NL2BR plugin off (I think it can be configured to ignore text in entries, but still work for comments), you'll get better control over your spacing.
Posted: Wed Jan 16, 2008 8:00 pm
by danne
judebert wrote:I use the HTML editor, so I use paragraph tags directly. If you also use the HTML editor, the lack of space between paragraphs is a problem with the template, which can be fixed by modifying its stylesheet.
Thanks.
I'm new to Serendipity. AFAIK, I don't have a html-editor, or?
Either it's !plain text" (not really... but that's what I use and which adds the break tags) or this WYSIWYG-thingy that's not too cool with some browsers.
So, please let me know what you mean with a html editor.
Posted: Wed Jan 16, 2008 10:25 pm
by judebert
Sorry; I was unclear.
There is a plain-text editor, in which you type your HTML. I was calling it an HTML editor; it does have a few buttons, which allow you to add <b> and <i> tags, for instance, but it's still just plain text. In that one, you just add your <p> tags wherever you want them. If they don't space out properly, you just edit the theme's stylesheet and style the p appropriately.
Serendipity supports a couple of different WYSIWYG editors. In these, when you hit the bold button, your text actually appears to be bold. These are used as-is, so I don't know how to make them add paragraph tags, and it's unlikely anybody else on the Serendipity forums would, either.
On top of all this, there's the NL2BR plugin, which converts carriage-returns (what you get when you press Enter) to <br /> tags. If you appear to be getting too much space, turning this off often fixes the problem.
Posted: Wed Jan 16, 2008 10:47 pm
by danne
judebert wrote:Sorry; I was unclear.
There is a plain-text editor, in which you type your HTML. I was calling it an HTML editor;
OK, got it. Thanks a bunch! That was what I was after...
(don't like WYSIWYG)
Cheers,
Dan