Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. Bug: code formatting messes up curly braces
Forum Updated to NodeBB v4.3 + New Features

Bug: code formatting messes up curly braces

Scheduled Pinned Locked Moved Qt.io webservices
6 Posts 4 Posters 3.6k Views 1 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.
  • A Offline
    A Offline
    andre
    wrote on last edited by
    #1

    C++ code has a tendency to include curly braces. They don't seem to be correctly parsed on this forum.

    You can see this in the code below:

    @Foo* foo::instance()
    {
    return createFoo();

    }
    @

    Instead of curly braces, you get { and }

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Funny how the escaped code that I put in the text is replaced by actual curly braces (and should NOT be!). You get curly braces when you don't want them, and escape codes when you want the braces... :(

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Felix
        wrote on last edited by
        #3

        it sometime also messes up with normal braces

        like

        @ button->show();
        return app.exec();@

        which should actually be the same braces.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          troubalex
          wrote on last edited by
          #4

          We are still fiddling with this. The issues are in. Thanks for reporting!

          THE CAKE IS A LIE
          Web Community Manager - Qt Development Frameworks

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Felix
            wrote on last edited by
            #5

            I also just noticed, that the preview doesnt show the code preview correctly. The code is only shown as plain text there

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mariusbu
              wrote on last edited by
              #6

              I've reported this bug "here":http://bugreports.qt.nokia.com/browse/QTWEBSITE-46.

              Cheers,
              Marius Bugge Monsen (mbm)

              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