Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a long URL that contains some hyphens, and would like to include it in a Word document. Unfortunately Word sees the hyphens and creates a rather ugly line-breaking scheme.

If I replace the hyphens with nonbreaking hyphens, it looks nice, but now if someone cut+pastes the URL into a browser, it won't work because the difference between regular hyphens and nonbreaking hyphens are significant.

I don't want to rely on a hyperlink, since a printed document may be used later. Also, I can't use tinyurl or another URL-shortening server, since it's an internal URL behind our company firewall.

Is there a way adjust paragraph style to keep Word from breaking lines at regular hyphens, so that I don't have to mess with the URL? Or do I just lose here?

share|improve this question
1  
Xref them to entries in a landscape format appendix? –  pnuts Jun 18 '13 at 17:21
    
I usually put the full URLs as footnotes on the hyperlinked text. I've been looking for a better way for years, but haven't found one. –  Moshe Katz Jun 24 '13 at 20:58

1 Answer 1

You can replace hyphens in a URL with %2D. When the URL is pasted into a browser, it will still work. Also, since you are removing the hyphens, Word won't wrap the line early in an arbitrary way.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.