Skip to main content
Inspiring
May 11, 2017
Answered

Unwanted spacing in source code

  • May 11, 2017
  • 1 reply
  • 695 views

Hello:

I now see unwanted spaces appearing in my source code, wit regard to links. Here's what appears in the markup. . .

You can the effect that this creates on my page. Look in the left column, near the bottom, in the group of hyperlinks in the "WCD's Photo Editing Pages."

http://www.warrencampdesign.com/coloringPages.html

I've looked in the Preferences panel and the Tag Libraries but can't find anything related to this problem.

I thank you in advance for showing me how to prevent such unwanted spacing from occurring.

Warren

    This topic has been closed for replies.
    Correct answer Jon Fritz

    Oh, I see, you're talking about the spaces in the tag content, after the opening <a> and before the closing </a>...

    <a href="photoEdit_puzzlesCubes.html"> Rubik's cubes </a> , <a href...

    ...and how that should be...

    <a href="photoEdit_puzzlesCubes.html">Rubik's cubes</a>, <a href...

    The only way those spaces can get there in my experience is if you add them. Are you saying DW is placing those spaces by itself when you create the links?

    1 reply

    Jon Fritz
    Community Expert
    Community Expert
    May 11, 2017

    You're going to need to be more specific as to what you are seeing and what you think you should be seeing.

    If you're talking about the long spaces after the <a on line 851 that drop to the next line, this is expected behavior. Widen your code window and you'll see what's happening. Basically the entire href attribute is being pushed to the next line, rather than splitting it up between two.

    This has no affect on how a browser will display your page. It's still technically one line of code without space, it's just displayed that way in code view.

    wcampAuthor
    Inspiring
    May 11, 2017

    Thanks for connecting with me on this on, Jon.

    Please open the page, scroll down looking in the left margin, in the group of ±18 hyperlinks under "WCD's Photo Editing Pages." You'll see that a space has been added before each separating comma; that space has also been linked.

    The screen shot shows that spacing, especially on line 849.

    Hope that specificity helps.

    Warren

    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    May 12, 2017

    Oh, I see, you're talking about the spaces in the tag content, after the opening <a> and before the closing </a>...

    <a href="photoEdit_puzzlesCubes.html"> Rubik's cubes </a> , <a href...

    ...and how that should be...

    <a href="photoEdit_puzzlesCubes.html">Rubik's cubes</a>, <a href...

    The only way those spaces can get there in my experience is if you add them. Are you saying DW is placing those spaces by itself when you create the links?