Copy link to clipboard
Copied
I use a special font, on which the two end-bracket characters ] } have a different image, which fits with others, and I do not want a line break after these symbols.
But Indesign seems to consider that this is an ideal spot to start a new line. Inserting a discretionary hyphen (before or after the sequence that I want unbroken) does not prevent it. If there is a regular hyphen just one character later, InDesign nonetheless wants to break after the bracket. For example:
Hfh-RNa-B]b-Ga-
is broken
Hfh-RNa-B]
b-Ga-
(In this case, another couple characters could fit on the top line.)
I have fiddled with hyphenation, turned it off, that doesn't fix it. (INDD doesn't add a hyphen, it doesn't think it is hyphenating a word.) I tried adding B]b to the user dictionary, that didn't help. Resetting language to All Languages didn't help.
It does not happen with opening brackets, nor with < >
Earlier INDD versions did not do this.
But for now, is there any way to prevent it? Ideally, within preferences or paragraph style, but even a way to fix individual cases would be helpful.
And REQUEST: Can this feature be dropped? Even people using normal brackets, sometimes will not want a new line there unless there is a space after the bracket.
You could add it to.tje grep styles too to apply no break
Or add an invisible character called a non-joiner after them by doing search and replace.
Copy link to clipboard
Copied
Apply no-break to the sequence you want to keep together and see whether that fixes the problem.
Copy link to clipboard
Copied
Thanks for the fast reply. I had not known about the No Break feature, and that is VERY helpful for individual cases.
But this comes up a lot. I'd like to find a way to over-ride the InDesign property (or whatever it's called) which makes the program downright eager to put a line break after the two end-bracket symbols. Any suggestions?
Copy link to clipboard
Copied
I don't think there's a setting for this, but you can apply n-break to those two characters with a single replacement. In the GREP tab of the Find/Change dialog, look for [}\]] and set no-break in the Change Format panel.
As to requests, submit them at https://indesign.uservoice.com
P.
Copy link to clipboard
Copied
You could add it to.tje grep styles too to apply no break
Or add an invisible character called a non-joiner after them by doing search and replace.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Great glad it worked for you
Copy link to clipboard
Copied
This is a followup to an earlier question, it should perhaps be a new post but I can't figure out how to do that, and it's related to this, so I'll try here.
We use a special font, on which the two end-bracket characters ] } have a different symbol, and we do not want a new line after these symbols.
But Indesign is tries hard to start a new line after these brackets.
I inquired about this in March and got a good solution from Eugene Tyson: put the invisible non-joiner character after the bracket. (It's at Type / Insert Special character / other / non-joiner).
Or, better for us because there's a lot of them: Search-and-replace, changing each bracket to bracket plus ^j
BUT: Now we're creating a lot of text from a database, exporting it as TXT (ANSI - we have more symbols in the 128-255 range). I would like to include this non-joiner character when we export, to avoid doing search-and-replace each time, but haven't been able to find a way. Inserting ^j just makes those show up as ordinary characters.
Perhaps there is a unicode character, but I don't think that would work for us, we need to export as ANSI text.
In short, we just need a way to tell InDesign, as it imports ("places") text, that ^j should be interpreted as the special character. It understands that with search-and-replace. Is there a coding to use for text imports that would allow us to do this?
(I have tried using n-breaks and GREP styles, with no success. I'm hoping for just a simple way to insert ^j into a txt file, so it is recognized as a special code.)
Thank you!