Copy link to clipboard
Copied
Hello,
As a contrived example, I have this url:
I am trying to put it in a 3-column master text frame.
Unfortunately, it only shows a small portion:
How can I force just the URL to break no matter the character?
I am aware of discretionary line breaks; I would prefer to not manually insert these as this is for an appendix with many URLs (and other text).
I'm running Indesign CC 13.1. Oddly, I don't remember having this issue in previous versions of Indesign.
Thanks for your help!
Hi Micky
I think you should be able to perform the GREP search and replace as explained in the article, but just remember to include the character style sheet you have created for underlining hyperlinks in the 'Find' field.
Copy link to clipboard
Copied
My https://www.id-extras.com/products/hyperlinkpro (not free) will insert the discretionary line breaks for you, and in the optimal place from a spacing point of view, plus it respects the Chicago Manual's rules about where URLs are allowed to be broken.
May be worth checking out.
Ariel
Copy link to clipboard
Copied
TᴀW wrote
My https://www.id-extras.com/products/hyperlinkpro (not free) will insert the discretionary line breaks for you, and in the optimal place from a spacing point of view, plus it respects the Chicago Manual's rules about where URLs are allowed to be broken.
May be worth checking out.
Thanks Ariel! I will check it out!
In this case, I just need the url to break irrespective of any conventions... basically, I don't want my text to disappear and am not worried about rules per se. Don't get me wrong, I used to work at a newspaper so I am all for rules, but in this case, I just want only the URLs to force wrap ... They should always start on a newline, so the part of the URL that is problematic is the bits after the TLD/.com.
Oddly enough, I swear that I never noticed this problem with Indesign in recent previous versions. Strange.
Thanks for your help!!!
Copy link to clipboard
Copied
This tip might also help:
Copy link to clipboard
Copied
Marie_D wrote
This tip might also help:
Thanks Marie! That totally helped!!!
Unfortunately, I need to only apply the discretionary line breaks to URLs.
Can I do this with a character style? I already have a character style that underlines hyperlinks .... Perhaps it could also apply a discretionary line break to each character in the matched character style?
I'm almost thinking Hyperlink Pro plugin might do trick. On the other hand, I just need a simple script that will insert discretionary line breaks for URLs only ... I'm decent at scripting, so it seems like a simple jsx script would do the trick.
Again though, not to sound like a broken record, but I don't remember having this issue in previous versions of Indesign. Hahah.
Thanks for your help Marie, I greatly appreciate it!
Copy link to clipboard
Copied
Hi Micky
I think you should be able to perform the GREP search and replace as explained in the article, but just remember to include the character style sheet you have created for underlining hyperlinks in the 'Find' field.
Copy link to clipboard
Copied
Marie_D wrote
I think you should be able to perform the GREP search and replace as explained in the article, but just remember to include the character style sheet you have created for underlining hyperlinks in the 'Find' field.
Oh yah? Shoot, that would be cool! I only played with it a little, and couldn't think of a way to add discretionary line break after each character of the matched grep. I was late at night though, so I'll give it another shot and report back my findings! Thank you so much for your help and motivation!
Copy link to clipboard
Copied
Ah, cool! You were right Marie! I just had to limit the grep to applied the character style:
Awesome! Thanks again for the help Marie and Ariel!