Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Try pasting the URL then (without changing anything else) entering a shift-enter where the break would have been if Word hadn't screwed it up. Word will reformat the URL using your shift-enter as the new break point. If you place your shift-enter in the wrong place in the URL, type ctrl-z and try again. The URL will remain intact, whether you click on it in the document or cut and paste it.

share|improve this answer

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

Remove the Automatic Border Line

  1. Click on the line above the border on the page, hold down the mouse button and drag to the line below the border line to highlight all the paragraphs near the border.
  2. Click the "Home" tab at the top of the screen, then click the "Border" button on the "Paragraph" panel. A drop-down menu will appear.
  3. Choose "No Border" from this menu and the border line on your page will disappear.
share|improve this answer
Um... What question are you answering? – G-Man Mar 4 '15 at 9:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .