Why does the forum ignore spaces

Discussion in 'Site Feedback' started by Davros, Jul 30, 2017.

  1. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    14,711
    Likes Received:
    2,166
    How its typed
    [​IMG]

    How its displayed
    [​IMG]
     
  2. BRiT

    BRiT (╯°□°)╯
    Moderator Legend Alpha Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    12,047
    Likes Received:
    8,163
    Location:
    Cleveland
    Because you didnt instruct it to treat it specially. Have you tried using code block? https://forum.beyond3d.com/help/bb-codes

    Code:
    Sr71a pilot:                "air traffic control requests clearance to 80,000 feet"
    
     
  3. AzBat

    AzBat Agent of the Bat
    Legend Veteran

    Joined:
    Apr 1, 2002
    Messages:
    5,907
    Likes Received:
    1,707
    Location:
    Alma, AR
    The code block ignores the spaces on Tapatalk too.

    Tommy McClain
     
  4. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    14,711
    Likes Received:
    2,166
    why should I have to? I dont have to tell the code block to treat full stops specially
     
  5. eloyc

    Veteran Regular

    Joined:
    Jan 23, 2009
    Messages:
    1,863
    Likes Received:
    1,054
    Because they don't want you to discover the truth.
     
  6. BRiT

    BRiT (╯°□°)╯
    Moderator Legend Alpha Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    12,047
    Likes Received:
    8,163
    Location:
    Cleveland
    Thats just the way it is on all forum software that renders to HTML Clients since the beginning of time from what I remember. Only next lines tend not to be ignored.
     
  7. Rikimaru

    Veteran Newcomer

    Joined:
    Mar 18, 2015
    Messages:
    1,014
    Likes Received:
    395
    HTML rendering ignores spaces.
    HTML has <pre></pre> tag which won't ignore spaces. Some forums have corresponding [pre] bbcode.
     
    BRiT likes this.
  8. BRiT

    BRiT (╯°□°)╯
    Moderator Legend Alpha Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    12,047
    Likes Received:
    8,163
    Location:
    Cleveland
    The closest XF has is the code tag.

    @Davros Yes, even in html and other forums you have to explicitly indicate to not ignore extraneous spaces. Its just the way it is.
     
  9. Malo

    Malo Yak Mechanicum
    Legend Veteran Subscriber

    Joined:
    Feb 9, 2002
    Messages:
    6,831
    Likes Received:
    2,879
    Location:
    Pennsylvania
    Welcome to 1990
     
  10. BRiT

    BRiT (╯°□°)╯
    Moderator Legend Alpha Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    12,047
    Likes Received:
    8,163
    Location:
    Cleveland
    If only that were the case. I'd know which investments to make and which to avoid. Maybe even tell a politician or two to not run their own email server. :razz:
     
    Malo likes this.
  11. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    14,711
    Likes Received:
    2,166
    So if i want to separate 2 words with 2 or more spaces how do i do it?
     
  12. Malo

    Malo Yak Mechanicum
    Legend Veteran Subscriber

    Joined:
    Feb 9, 2002
    Messages:
    6,831
    Likes Received:
    2,879
    Location:
    Pennsylvania
    As mentioned, you use the code tag. That will accept multiple spaces for code layout examples.

    Outside of the code tag you have to rethink your content and why you want multiple spaces.
     
    #12 Malo, Jul 31, 2017
    Last edited: Aug 1, 2017
  13. BRiT

    BRiT (╯°□°)╯
    Moderator Legend Alpha Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    12,047
    Likes Received:
    8,163
    Location:
    Cleveland
  14. Zaphod

    Zaphod Remember
    Veteran

    Joined:
    Aug 26, 2003
    Messages:
    2,198
    Likes Received:
    87
    Rys could probably make some easy hack to implement a non breaking space code.

    I guess just a replacement filter might work. Say turn whatewer into the appropriate HTML entity,

    Code:
    [nbsp] -> &nbsb;
     
  15. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    14,711
    Likes Received:
    2,166
    well Brit linked to a page with several bb codes on it but forgot to tell anyone which is the one to use
    so I'm guessing its the plain code
     
  16. Malo

    Malo Yak Mechanicum
    Legend Veteran Subscriber

    Joined:
    Feb 9, 2002
    Messages:
    6,831
    Likes Received:
    2,879
    Location:
    Pennsylvania
    He linked to a specific post in which he specified the Code tag and provided the example. A link to a post includes the entire thread but focuses on the post in question.

    Simply click on the + icon (insert...) on the editor toolbar then Code.
     
    BRiT likes this.
  17. BRiT

    BRiT (╯°□°)╯
    Moderator Legend Alpha Subscriber

    Joined:
    Feb 7, 2002
    Messages:
    12,047
    Likes Received:
    8,163
    Location:
    Cleveland
    Reread again.
     
  18. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    14,711
    Likes Received:
    2,166
    Ah, I was reading the wrong post
    the plain tag doesnt work the code tag works, but I'm worried it might start highlighting words if they are also part of a programming language.
     
    BRiT likes this.
  19. Malo

    Malo Yak Mechanicum
    Legend Veteran Subscriber

    Joined:
    Feb 9, 2002
    Messages:
    6,831
    Likes Received:
    2,879
    Location:
    Pennsylvania
    It won't do that as it's not smart. It's a "Code" tag only named as such due to it's use in presenting code normally. It has other uses but that's its common use.
     
    BRiT likes this.
  20. AlBran

    AlBran Ferro-Fibrous
    Moderator Legend

    Joined:
    Feb 29, 2004
    Messages:
    20,537
    Likes Received:
    5,644
    Location:
    ಠ_ಠ
    Code:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            the final frontier
     
    Shifty Geezer, entity279 and BRiT like this.
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...