Spacing in articles
-
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.
-
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.
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.
-
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.
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?
-
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?
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.
-
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.
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.
-
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.
Thanks for the catch Meshack, we have added this to our bug list
Thanks, Sean Ewington The Code Project
-
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.
Found the issue. Will upload today.
cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP