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. Spacing in articles

Spacing in articles

Scheduled Pinned Locked Moved Site Bugs / Suggestions
7 Posts 4 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.
  • M Offline
    M Offline
    Meshack Musundi
    wrote on last edited by
    #1

    There's a lack of spacing between elements enclosed in <code> tags and the text following them. While edits to change this are viewable on preview this isn't the case once the article is updated. I hope this isn't just me re-exercising an oversight.

    L S 2 Replies Last reply
    0
    • M Meshack Musundi

      There's a lack of spacing between elements enclosed in <code> tags and the text following them. While edits to change this are viewable on preview this isn't the case once the article is updated. I hope this isn't just me re-exercising an oversight.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      For horizontal spacing, HTML does space compaction, i.e. it replaces multiple spaces by a single one, even when HTML tags are in between those spaces. You could take advantage of   not doing the same. If you're concerned about vertical spacing between a code snippet and the next text paragraph, I must urge you to use PRE tags, not CODE tags, for the code snippets. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

      M 1 Reply Last reply
      0
      • L Luc Pattyn

        For horizontal spacing, HTML does space compaction, i.e. it replaces multiple spaces by a single one, even when HTML tags are in between those spaces. You could take advantage of   not doing the same. If you're concerned about vertical spacing between a code snippet and the next text paragraph, I must urge you to use PRE tags, not CODE tags, for the code snippets. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

        M Offline
        M Offline
        Meshack Musundi
        wrote on last edited by
        #3

        Thanks for the feedback Luc. I have to wonder though, why are edits visible when previewing an article but not in effect after updating. I added spaces manually, plus some minor edits, clicked on preview button and everything looked as I expected. Ater submitting changes and viewing the article nothing had changed. Does HTML space compacting not apply in the preview window?

        L 1 Reply Last reply
        0
        • M Meshack Musundi

          Thanks for the feedback Luc. I have to wonder though, why are edits visible when previewing an article but not in effect after updating. I added spaces manually, plus some minor edits, clicked on preview button and everything looked as I expected. Ater submitting changes and viewing the article nothing had changed. Does HTML space compacting not apply in the preview window?

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          I don't know as I tend to not use the CodeProject article preview; I compose and check my articles in another environment, and just check the result once more when it has been published. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

          M 1 Reply Last reply
          0
          • L Luc Pattyn

            I don't know as I tend to not use the CodeProject article preview; I compose and check my articles in another environment, and just check the result once more when it has been published. :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, and update CP Vanity to V2.0 if you haven't already.

            M Offline
            M Offline
            Meshack Musundi
            wrote on last edited by
            #5

            This seems to be a recent issue as i've noticed it on other articles. My previous edits on my articles did not experience this issue. I write my articles in Dreamweaver then copy paste the markup, minus html and body tags, to the submission wizard. I then add the necessary cp links for source files and images. This has worked well till recently when this issue cropped up in my recent article.

            C 1 Reply Last reply
            0
            • M Meshack Musundi

              There's a lack of spacing between elements enclosed in <code> tags and the text following them. While edits to change this are viewable on preview this isn't the case once the article is updated. I hope this isn't just me re-exercising an oversight.

              S Offline
              S Offline
              Sean Ewington
              wrote on last edited by
              #6

              Thanks for the catch Meshack, we have added this to our bug list

              Thanks, Sean Ewington The Code Project

              1 Reply Last reply
              0
              • M Meshack Musundi

                This seems to be a recent issue as i've noticed it on other articles. My previous edits on my articles did not experience this issue. I write my articles in Dreamweaver then copy paste the markup, minus html and body tags, to the submission wizard. I then add the necessary cp links for source files and images. This has worked well till recently when this issue cropped up in my recent article.

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

                Found the issue. Will upload today.

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

                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