Skip to main content
Known Participant
March 25, 2019
Question

Apply Source Formatting removes space after <a> tags

  • March 25, 2019
  • 1 reply
  • 603 views

Using CS6.

I set the <a> tag to "No line breaks" in the tag library because the line breaks it inserted would create unwanted spaces on the page.

But now, when I run "apply source formatting" to fix my indenting, it actually deletes any space after the </a> so the next word is crammed up against my link. 

i have not been able to figure out how to correct this with Tag Libraries.  Anyone else have this problem?

This topic has been closed for replies.

1 reply

Nancy OShea
Community Expert
Community Expert
March 25, 2019

Are you adding a non-breaking space entity after the anchor?  See screenshot.

Nancy O'Shea— Product User & Community Expert
Known Participant
March 25, 2019

Well I thought about that, but it would require modifying countless existing links on my site. I don't understand the logic of DW deleting the space. Any link that appears in the middle of a sentence would need a space following it. There must be a way to tell DW to just leave it alone.

Nancy OShea
Community Expert
Community Expert
March 25, 2019

ConnieGoss  wrote

There must be a way to tell DW to just leave it alone.

Yes, with a non-breaking space.

... it would require modifying countless existing links on my site.

Use Find & Replace.  That's what it's for. 

I don't understand the logic of DW deleting the space.

CS6 is legacy software now.  It's no longer supported or updated.  Adobe will never change how it works.   So it's a moot point.

For what it's worth, apply source formatting in DW CC 2019 does not remove spaces after anchors.  

Nancy O'Shea— Product User & Community Expert