Forums

Spaces between paragraphs after pressing return not working in comments (2 posts)

  1. Jack Cope
    Member
    Posted 4 months ago #

    My brother made me this lovely theme which, as I'm sure you'll agree, looks pretty nice. However there is a problem. Whenever a comment is made in the comments section, any returns entered to create new paragraphs don't show up when the comment is posted. Now, I can see the returns on the dashboard, they just seem to get lost along the way. An example:

    http://thepenofawanderingstranger.com/personal/a-note-on-hollocaust-memorial-day/#comments

    On the dashboard I can see the commenter has but a return in after his second sentence but it just doesn't show up.

    I know it is probably a very easy problem to fix but sadly my knowledge of coding and all those shenanigans doesn't reach very far... I'm a writer ;-)

    Thanks in advance, there are a few other issues with this theme but for me that one is more important, the others can wait.

    Jack

  2. peredur
    Member
    Posted 4 months ago #

    I'm not sure how the comments text boxes work, so I don't know if this is helpful... However, for a browser, a space, a carriage return, a tab and so on are all the same thing: instances of 'white space'. A browser renders any series of white space characters as a single space (note that a non-breaking space -   - is not white space).

    The only way to get a browser to end a 'line' and start a new one is to enter a <br /> tag into the stream. The only way to start a new paragraph is to end the current one <\p> and to start a new one with <p>.

    So, if a comments box simply returns a plan text stream without HTML, a 'Return' character is just an instance of white space and will be displayed as a space (or a new line if the space occurs at the extreme right edge of the block, of course, for ltr languages).

    I'm afraid that's just an explanation and not a fix. I've no idea what might constitute a fix, I'm afraid.

    Cheers

    PAE

Reply

You must log in to post.

About this Topic

Tags