Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Posting new topics is a hassle

Last post 05-08-2009, 4:30 PM by ddrudik. 7 replies.
Sort Posts: Previous Next
  •  05-06-2009, 12:15 AM 52689

    Posting new topics is a hassle

    It's a real hassle to post new topics. Everytime I try to double space some lines, it's replaced with a single line.
    Example:(should be a blank line above this)
    test1
    test2 (should be a blank line above this)
    test3 (should be a blank line above this)
    test4 (should be two blank lines above this)
    When I try to write some code examples in new topics, it makes, it makes it really hare to read the examples. So I go back and have to edit it multiple times, before I finally get it right. I uaually end up writing my own HTML for the post.

    "God did not create evil. Evil is a result
    of what happens when man does not have
    God's love present in his heart. It's like the
    cold that comes when there is no heat, or the
    darkness that comes when there is no light."
    Albert Einstein
  •  05-06-2009, 11:28 PM 52739 in reply to 52689

    Re: Posting new topics is a hassle

    Interesting, because I have exactly the opposite problem - the forum wraps the long lines onto the next line OK, but when I use the 'return/enter' key, I get double-spaced lines.

    I have noticed that the browser also affects this in that using IE, I can get single-spaced lines
    such as this by using shift-enter but

    spacing such as this is what I get with jsut the enter key. On the other hand, using Safari on my Mac at home, I can't get single-spaced lines at all unless I use another editor and paste the text in to the text box when it is otherwise blank.In this situation, the Enter key gioves me single-spaced lines for the rest of the entry.

    Sigh.

    Susan

  •  05-07-2009, 12:24 AM 52744 in reply to 52739

    Re: Posting new topics is a hassle

    For your "Site Options", what option do you have set for "Content Editor". I remember having the same problem that you just explained, some some site that was using the the software as this site, but I was using IE7 then.

    It almost seems to be a browser compatibility issue with "<div>&nbsp;</div>", which is what is being used for new lines. I think that should be replaced with a simple "<br />".

    Edit:
    Actually, upon posting "<div>&nbsp;</div>" is replaced with "<div></div>".
    Susan, I looked at the source of this page. Did you write your post with an HTML editor? You post doesn't use a single div tag, it uses paragragh tags "&lt;p&gt;", wich would explain why you get double lines, instead of a single line.

    "God did not create evil. Evil is a result
    of what happens when man does not have
    God's love present in his heart. It's like the
    cold that comes when there is no heat, or the
    darkness that comes when there is no light."
    Albert Einstein
  •  05-07-2009, 12:37 AM 52746 in reply to 52744

    Re: Posting new topics is a hassle

    This is a test using IE8

    Single newline:
    Line one
    Line two
    <div>Line one</div>
    <div>Line two</div>

    Double newline: (how the forum does it)
    Line one
    Line two
    <div>Line one</div>
    <div></div>
    <div>Line two</div>

    Double newline: (how the forum means to do it)
    Upon click "post", the HTML is validated, and <div>&nbsp;</div> is replaced with <div></div>
    Line one
    Line two
    <div>Line one</div>
    <div>&nbsp;</div>
    <div>Line two</div>

    Double newline: (better way)
    Line one

    Line two
    <div>Line one</div><br />
    <div>Line two</div>

    "God did not create evil. Evil is a result
    of what happens when man does not have
    God's love present in his heart. It's like the
    cold that comes when there is no heat, or the
    darkness that comes when there is no light."
    Albert Einstein
  •  05-07-2009, 12:54 AM 52747 in reply to 52746

    Re: Posting new topics is a hassle

    This is a test using FireFox

    Single newline:
    Line one
    Line two
    <div>Line one</div>
    <div>Line two</div>

    Double newline: (how the forum does it)
    Line one
    Line two
    <div>Line one</div>
    <div></div>
    <div>Line two</div>

    Double newline: (how the forum means to do it)
    Upon click "post", the HTML is validated, and <div>&nbsp;</div> is replaced with <div></div>
    Line one
     
    Line two
    <div>Line one</div>
    <div>&nbsp;</div>
    <div>Line two</div>

    Double newline: (better way)
    Line one

    Line two
    <div>Line one</div><br />
    <div>Line two</div>

    "God did not create evil. Evil is a result
    of what happens when man does not have
    God's love present in his heart. It's like the
    cold that comes when there is no heat, or the
    darkness that comes when there is no light."
    Albert Einstein
  •  05-07-2009, 10:03 AM 52758 in reply to 52747

    Re: Posting new topics is a hassle

    Lacking an "insert code block" feature the forum will munge example text as well as code at times.

    I use this to produce a text block that I can successfully copy/paste without issue:

    http://www.myregextester.com/code.php

    You can also create/link to external examples with sites such as:

    http://pastebin.com/

    Unfortunately this is an old issue with the forum and one that must not be easy to fix.


  •  05-07-2009, 1:33 PM 52761 in reply to 52758

    Re: Posting new topics is a hassle

    I guess I'll just have to live with it or use the plaintext editor.

    Thanks for the link btw, that's really cool. Did you make it?
    "God did not create evil. Evil is a result
    of what happens when man does not have
    God's love present in his heart. It's like the
    cold that comes when there is no heat, or the
    darkness that comes when there is no light."
    Albert Einstein
  •  05-08-2009, 4:30 PM 52820 in reply to 52761

    Re: Posting new topics is a hassle

    That is from my site and I put together the form, but it uses geshi to do the formatting which is not mine:

    http://geshi.org/


View as RSS news feed in XML