Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Linebreaks in the article editor

Linebreaks in the article editor

Scheduled Pinned Locked Moved Site Bugs / Suggestions
csharphtmldotnetcomgraphics
6 Posts 2 Posters 0 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.
  • C Offline
    C Offline
    Cesar de Souza
    wrote on last edited by
    #1

    Hi there! First of all, excellent work on all site features and in the revamped interface :-) CodeProject has never been so great! (erm, actually, it has always been great, but the fact it is ever evolving makes it even nicer) I would like to report an issue with the online article submission wizard, particularly in the article editor. Everytime I open the draft of one of my articles, it gets a " <br />" added after each of its lines. It is funny because if I close and reopen it 10 times, I will have 10 line breaks inserted between the lines, making everything giantly spaced. This only happens if I close the article editor and reopen it. It doesn't happen when changing from HTML view to design view, or anything else I tried. To sidestep this issue I am currently saving the HTML of my current draft in Notepad :) I am using Chrome, if this is relevant. Please keep up the good work! Best regards, Cesar

    Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Handwriting Recognition Revisited: Kernel Support Vector Machines

    C 1 Reply Last reply
    0
    • C Cesar de Souza

      Hi there! First of all, excellent work on all site features and in the revamped interface :-) CodeProject has never been so great! (erm, actually, it has always been great, but the fact it is ever evolving makes it even nicer) I would like to report an issue with the online article submission wizard, particularly in the article editor. Everytime I open the draft of one of my articles, it gets a " <br />" added after each of its lines. It is funny because if I close and reopen it 10 times, I will have 10 line breaks inserted between the lines, making everything giantly spaced. This only happens if I close the article editor and reopen it. It doesn't happen when changing from HTML view to design view, or anything else I tried. To sidestep this issue I am currently saving the HTML of my current draft in Notepad :) I am using Chrome, if this is relevant. Please keep up the good work! Best regards, Cesar

      Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Handwriting Recognition Revisited: Kernel Support Vector Machines

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      César de Souza wrote:

      This only happens if I close the article editor and reopen it

      I'm trying to replicate and not having any luck here. When you say "close the editor" do you mean you close the browser window or hit 'Cancel'? When you reopen are you clicking the "Update my article" link each time?

      cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

      C 2 Replies Last reply
      0
      • C Chris Maunder

        César de Souza wrote:

        This only happens if I close the article editor and reopen it

        I'm trying to replicate and not having any luck here. When you say "close the editor" do you mean you close the browser window or hit 'Cancel'? When you reopen are you clicking the "Update my article" link each time?

        cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

        C Offline
        C Offline
        Cesar de Souza
        wrote on last edited by
        #3

        Sorry Chris, I should have provided a more detailed description. Here it happens whenever I do the following steps: - Create an article - Switch to HTML view - Type in the following (with the extra line breaks between the p tags):

        test1

        test2

        test3

        - Save the draft (pressing the green button on the right) - Reload the page When the page finishes reloading, there will be an extra line break after each line. If I go to the HTML view it will read:

        test1

        test2

        test3

        Perhaps this could be by design, but it seems this happens because I like to organize the HTML code so it gets easier to read in case I have to manually edit it (such as when configuring images or positioning). Please let me know if this is indeed a bug or I am doing something wrong.

        Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Handwriting Recognition Revisited: Kernel Support Vector Machines

        1 Reply Last reply
        0
        • C Chris Maunder

          César de Souza wrote:

          This only happens if I close the article editor and reopen it

          I'm trying to replicate and not having any luck here. When you say "close the editor" do you mean you close the browser window or hit 'Cancel'? When you reopen are you clicking the "Update my article" link each time?

          cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

          C Offline
          C Offline
          Cesar de Souza
          wrote on last edited by
          #4

          Hi Chris, Sorry to bother, but did you had success replicating the issue? I've just noticed it still occurs. I can create a video or provide more info if you need. If you can peek into unpublished articles perhaps you could also see the article I am writing which has this issue. Best regards, Cesar

          Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Handwriting Recognition Revisited: Kernel Support Vector Machines

          C 1 Reply Last reply
          0
          • C Cesar de Souza

            Hi Chris, Sorry to bother, but did you had success replicating the issue? I've just noticed it still occurs. I can create a video or provide more info if you need. If you can peek into unpublished articles perhaps you could also see the article I am writing which has this issue. Best regards, Cesar

            Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also Handwriting Recognition Revisited: Kernel Support Vector Machines

            C Offline
            C Offline
            Chris Maunder
            wrote on last edited by
            #5

            I've just tried again and, again, I'm failing to replicate. 1. Open article in the editor. 2. Check HTML, ensure no <br>'s 3. Switch back to "Design" mode and hit Save Draft. 4. Reload editor with the same article 5. Check HTML. No <br>'s are ever found. :confused:

            cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

            C 1 Reply Last reply
            0
            • C Chris Maunder

              I've just tried again and, again, I'm failing to replicate. 1. Open article in the editor. 2. Check HTML, ensure no <br>'s 3. Switch back to "Design" mode and hit Save Draft. 4. Reload editor with the same article 5. Check HTML. No <br>'s are ever found. :confused:

              cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

              C Offline
              C Offline
              Cesar de Souza
              wrote on last edited by
              #6

              Hi Chris, I've created an extremely detailed specification on how I am triggering this. Sorry if it seems to much, but I hope it leaves no doubts on what I did. 1. Open Codeproject. 1.1 Hover your mouse over "articles". A menu should appear. 1.1 When it appears, Click the link "Submit an article or tip". 2. The Submit a new Article page will be shown. 2.2 Click the button "Submit an Article" (on the left, in brown) 3. The Article Submission Wizard will appear. 3.1 Write anything as the article's title, such as "anything". 3.2 In the designer, click the HTML button to go to HTML view. 3.3 Remove all text from the template there (Ctrl-A, Backspace) Now type exactly those words :-D

              Hey

              I've just met you

              And this is crazy

              But there will be extra spaces

              between these sentences

              (note that I've actually hit 'enter' right after each </p>). 3.4 Now click the button "Save Draft" (on the right, in green) 3.5 Hover the mouse on your username, on the right top of the site. 3.6 A menu will appear. Click on the link "My Articles" 3.7 (optional) A popup may appear asking if you would like to lose any unsaved text. I answer "leave this page". I am unsure if this is a Chrome-only thing. 4. The Articles by Chris Maunder page will appear. 4.1 Find your recently created article. Mine was called "anything", located under the Uncategorised Articles, General section. 4.2 Click on its name. 5. Your article will appear, together with a notice: This is an auto-saved draft copy of the new unpublished article created by the submission wizard. You can either discard this draft or continue to work on it. 5.1 Choose to "work on it". 6. The Article Submission Wizard will appear. 6.1 Click on the HTML button to the see the HTML code Here it reads:

              Hey

               

              I've just met you

               

              And this is crazy

               

              But there will be extra spaces

               

              between these sentences

              In fact, this would also have been noticeable on step 5. The article would have open with unusually large spaces between the sentences. For some system specifications, I am running Chrome 22.0.1229.94 m on Windows 7 64 bits. Best regards, Cesar

              Interested in Machine Learning in .NET? Check the Accord.NET Framework. See also

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups