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. Article submission adds parasitic <p> </p> with non-breakable white space

Article submission adds parasitic <p> </p> with non-breakable white space

Scheduled Pinned Locked Moved Site Bugs / Suggestions
question
6 Posts 3 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.
  • S Offline
    S Offline
    Sergey Alexandrovich Kryukov
    wrote on last edited by
    #1

    The one way I can clearly reproduce is posting and article with TOC in the form:

        *   ...
    

    Is it wrong? In this case, submission process adds empty paragraphs before and after this fragment:

     

    These empty paragraphs are, unfortunately, well visible, because the content of these paragraphs is a non-breakable space. (Implementing of formatting side effects via using of such special characters is usually described as discouraged technique.) Thank you.

    —SA

    Sergey A Kryukov

    realJSOPR C 2 Replies Last reply
    0
    • S Sergey Alexandrovich Kryukov

      The one way I can clearly reproduce is posting and article with TOC in the form:

          *   ...
      

      Is it wrong? In this case, submission process adds empty paragraphs before and after this fragment:

       

      These empty paragraphs are, unfortunately, well visible, because the content of these paragraphs is a non-breakable space. (Implementing of formatting side effects via using of such special characters is usually described as discouraged technique.) Thank you.

      —SA

      Sergey A Kryukov

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      Before you click the Publish button, try checking the box "I'm an expert - don't mess with my HTML" (or something to that effect).

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      S 1 Reply Last reply
      0
      • realJSOPR realJSOP

        Before you click the Publish button, try checking the box "I'm an expert - don't mess with my HTML" (or something to that effect).

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        S Offline
        S Offline
        Sergey Alexandrovich Kryukov
        wrote on last edited by
        #3

        Thank you, John. Of course I do exactly that. What I describe happens in this case, too.

        —SA

        Sergey A Kryukov

        realJSOPR 1 Reply Last reply
        0
        • S Sergey Alexandrovich Kryukov

          Thank you, John. Of course I do exactly that. What I describe happens in this case, too.

          —SA

          Sergey A Kryukov

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          It hit me yesterday. I experienced it when I switched from "source" mode (not using the Ace source editor). It's also not constrained by lists. It happened A LOT.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

          S 1 Reply Last reply
          0
          • realJSOPR realJSOP

            It hit me yesterday. I experienced it when I switched from "source" mode (not using the Ace source editor). It's also not constrained by lists. It happened A LOT.

            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
            -----
            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
            -----
            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

            S Offline
            S Offline
            Sergey Alexandrovich Kryukov
            wrote on last edited by
            #5

            Exactly.

            Sergey A Kryukov

            1 Reply Last reply
            0
            • S Sergey Alexandrovich Kryukov

              The one way I can clearly reproduce is posting and article with TOC in the form:

                  *   ...
              

              Is it wrong? In this case, submission process adds empty paragraphs before and after this fragment:

               

              These empty paragraphs are, unfortunately, well visible, because the content of these paragraphs is a non-breakable space. (Implementing of formatting side effects via using of such special characters is usually described as discouraged technique.) Thank you.

              —SA

              Sergey A Kryukov

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

              The issue here is that our editor (CKEditor) is using the HTML 4 standard which says the DIV element cannot be inside another block-level element, like a P element. In HTML5 the DIV element can be found inside and can contain other flow content elements, like P and DIV. We were looking to move to CKEditor5 but it's moved to a method we've seen other editors adopt as well: not allowing HTML source editing at all. This provides them a lot of flexibility for new features (eg they can output whatever HTML they want, or Markdown, or whatever) while ensuring the final layout can never be messed up by someone adding custom HTML through a source view and another editor wrecking that by using the editor. So long story short: Don't put a DIV inside a P block.

              cheers Chris Maunder

              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