Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. This forum swallows braces if no whitespace between { and } with "layout{ this }"
Qt 6.11 is out! See what's new in the release blog

This forum swallows braces if no whitespace between { and } with "layout{ this }"

Scheduled Pinned Locked Moved General and Desktop
13 Posts 4 Posters 3.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nicesw123
    wrote on last edited by nicesw123
    #1

    This forum has messed-up markup possibilities!!

    Write the following in the forum "layout{ this }" but without the 2 whitespaces (preceding and following "this"). Then logout and check your post again. And behold the disappearance-act! ;)

    layout{this}
    // the above line has: layout{ this }   , but without the space between '{' and "this" and without the space between "this" and '}'
    

    Needs to be fixed, because frankly... these braces are very important for C++:
    curly braced uniform initialization of C++11
    (Can't just be dropped in the output!!!)

    S 1 Reply Last reply
    0
    • tekojoT Offline
      tekojoT Offline
      tekojo
      wrote on last edited by tekojo
      #2

      The forum uses markdown.

      For code snippets please use a backtick (`) to indicate a snippet start and end.
      For longer code pieces either use triple backticks (```) or indent every line with four spaces.

      To help you out, the forum also tries to identify code in your posts and apply code highlighting automatically, however that isn't always so simple, and therefore the backticks are needed.

      The small question mark in the post editor provides a link to a markdown cheat sheet too.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nicesw123
        wrote on last edited by nicesw123
        #3

        Arrrgggg..... You misunderstand completely!

        Go ahead and write a reply to this message.
        In the reply please write this for me:
        "layout{ this }"

        But do not put whitespace before the word this and after the word this.
        Then logout and check your post again. You'll see that the braces and their content has disappeared.

        tekojoT 1 Reply Last reply
        1
        • N nicesw123

          Arrrgggg..... You misunderstand completely!

          Go ahead and write a reply to this message.
          In the reply please write this for me:
          "layout{ this }"

          But do not put whitespace before the word this and after the word this.
          Then logout and check your post again. You'll see that the braces and their content has disappeared.

          tekojoT Offline
          tekojoT Offline
          tekojo
          wrote on last edited by tekojo
          #4

          @nicesw123 said:

          Arrrgggg..... You misunderstand completely!

          Go ahead and write a reply to this message.
          In the reply please write this for me:
          "layout{ this }"

          But do not put whitespace before the word this and after the word this.
          Then logout and check your post again. You'll see that the braces and their content has disappeared.

          Ah now it's there. (or actually not there)

          In the reply window it looks ok. And looked ok in your post too, but on this load there is no {this} there. It probably has something to do with markdown thinking it's some formatting.

          Looks like a bug on the platform, opening in upstream.

          N 1 Reply Last reply
          0
          • tekojoT tekojo

            @nicesw123 said:

            Arrrgggg..... You misunderstand completely!

            Go ahead and write a reply to this message.
            In the reply please write this for me:
            "layout{ this }"

            But do not put whitespace before the word this and after the word this.
            Then logout and check your post again. You'll see that the braces and their content has disappeared.

            Ah now it's there. (or actually not there)

            In the reply window it looks ok. And looked ok in your post too, but on this load there is no {this} there. It probably has something to do with markdown thinking it's some formatting.

            Looks like a bug on the platform, opening in upstream.

            N Offline
            N Offline
            nicesw123
            wrote on last edited by
            #5

            @tekojo You wrote: "Looks like a bug on the platform, opening in upstream."

            Where did you open the bug? Can you post a link?

            Thanks.

            1 Reply Last reply
            0
            • N nicesw123

              This forum has messed-up markup possibilities!!

              Write the following in the forum "layout{ this }" but without the 2 whitespaces (preceding and following "this"). Then logout and check your post again. And behold the disappearance-act! ;)

              layout{this}
              // the above line has: layout{ this }   , but without the space between '{' and "this" and without the space between "this" and '}'
              

              Needs to be fixed, because frankly... these braces are very important for C++:
              curly braced uniform initialization of C++11
              (Can't just be dropped in the output!!!)

              S Offline
              S Offline
              SysTech
              wrote on last edited by
              #6

              @nicesw123

              I've personally noticed since the switch to this forum that many things are wacky!

              Sometimes a few sentences will be in a GIGANTIC font but I see no markdown (or up) telling it to do so.

              Then code seems to be a mess. I think many of us got used to the @ @ brackets and now code, at least in some older entries is badly formatted and I think it is because some of it had indentation and other parts did not.

              tekojoT 1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote on last edited by hskoglund
                #7

                Hi couldn't resist trying:

                layout
                // the above line has: layout{­this­}

                text works with some HTML entities hack instead of clear text, but formatting as code with backticks and/or 4 spaces indentation is broken :-(

                1 Reply Last reply
                0
                • S SysTech

                  @nicesw123

                  I've personally noticed since the switch to this forum that many things are wacky!

                  Sometimes a few sentences will be in a GIGANTIC font but I see no markdown (or up) telling it to do so.

                  Then code seems to be a mess. I think many of us got used to the @ @ brackets and now code, at least in some older entries is badly formatted and I think it is because some of it had indentation and other parts did not.

                  tekojoT Offline
                  tekojoT Offline
                  tekojo
                  wrote on last edited by
                  #8

                  @SysTech yeah, the old import is still in textile. That messes old topics.
                  I have a plan to run a translation tool on all the old entries. But need to test it properly first.

                  And I'm talking to the forum coders, they are a helpful bunch, and they are working to fix the formatting. They had the issue open already.

                  N 1 Reply Last reply
                  0
                  • tekojoT tekojo

                    @SysTech yeah, the old import is still in textile. That messes old topics.
                    I have a plan to run a translation tool on all the old entries. But need to test it properly first.

                    And I'm talking to the forum coders, they are a helpful bunch, and they are working to fix the formatting. They had the issue open already.

                    N Offline
                    N Offline
                    nicesw123
                    wrote on last edited by
                    #9

                    @tekojo Any info on this?
                    It's been a while; and if I check the top post in this thread... I see the problem has not yet been fixed.

                    Thanks for info.

                    tekojoT 1 Reply Last reply
                    0
                    • N nicesw123

                      @tekojo Any info on this?
                      It's been a while; and if I check the top post in this thread... I see the problem has not yet been fixed.

                      Thanks for info.

                      tekojoT Offline
                      tekojoT Offline
                      tekojo
                      wrote on last edited by
                      #10

                      @nicesw123 Waiting on the next release of the forum, which is coming in some weeks (it's an open source project, so asking for release times isn't appropriate). That will have this fix and a bunch of others we want, so we will be updating to it soon after it's out.

                      N 1 Reply Last reply
                      0
                      • tekojoT tekojo

                        @nicesw123 Waiting on the next release of the forum, which is coming in some weeks (it's an open source project, so asking for release times isn't appropriate). That will have this fix and a bunch of others we want, so we will be updating to it soon after it's out.

                        N Offline
                        N Offline
                        nicesw123
                        wrote on last edited by
                        #11

                        Here's the relevant link, that you haven't yet mentioned:

                        https://github.com/NodeBB/NodeBB/issues/2874

                        N 1 Reply Last reply
                        1
                        • N nicesw123

                          Here's the relevant link, that you haven't yet mentioned:

                          https://github.com/NodeBB/NodeBB/issues/2874

                          N Offline
                          N Offline
                          nicesw123
                          wrote on last edited by nicesw123
                          #12

                          Oh and please configure the forum (if possible) such that we can see a user's username in posts; and not just the user's image!

                          Thanks.

                          tekojoT 1 Reply Last reply
                          0
                          • N nicesw123

                            Oh and please configure the forum (if possible) such that we can see a user's username in posts; and not just the user's image!

                            Thanks.

                            tekojoT Offline
                            tekojoT Offline
                            tekojo
                            wrote on last edited by
                            #13

                            @nicesw123 yes, will ask that from our designer.

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved