Skip to main content
DJClements
Known Participant
April 19, 2021
Question

Nested line style causes justification of text to force onto single line

  • April 19, 2021
  • 3 replies
  • 1344 views

Hi all, hope there is some help out there!

 

First a quick breakdown:

I have a paragraph style applied to all titles in a document. In that style, there is a nested line style using a character style applied to one line only. This character style onle has the character colour defined, so simply changes the first line of any title a dark blue. The rest of the lines of any title use the paragraph style colour, light blue, if they carry over multiple lines.

 

I've run into an issue where this nested style is causing justification issues for the second line of a title, causing the characters to bunch up and instead of separating over multiple lines like it should.

 

Image 1 shows the title with the nested style applied.

Image 2 shows the title as it should be (aside from the colour), without the nested style.

Image 3 shows the character style, only the colour is defined.

 

Obviously I can edit the text and add soft returns in manually to have the text appear how I want it, but I've not seen this behaviour with any other title in the document, many of which appear to have the same characteristics as this one.

 

Any help greatly appreciated!

This topic has been closed for replies.

3 replies

Barb Binder
Community Expert
Community Expert
April 19, 2021

Hi @DJClements:

 

This is such an unusual problem. You can report it as a bug here: https://indesign.uservoice.com/.

 

In the meantime, how many of these titles are you dealing with? I wonder if you can take a different approach to automating character style application that avoids using a Nested Line Style—which I have never used in real life. Nested styles and GREP styles yes, but never a nested line style. 

 

~Barb 

~Barb at Rocky Mountain Training
DJClements
Known Participant
April 20, 2021

Hi Barb, thanks for the link, will do! It is odd yes, I don't see any reason for it to cause this behaviour, but as you say, may just be a bug.

 

I typically have anywhere from 15-60 pages in a proposal, and these titles change and are tailored depending on whom they're being sent to. The titles are usually short and manageable but most carry over multiple lines and the two-colour formatting is part of the brand identity that we use, so an automated option is hugely preferable. The nested line style is the only way I've found to implement this formatting automatically, especially when the number of words / characters is obviously never the same actoss every title.

jmlevy
Community Expert
Community Expert
April 19, 2021

There is something really weird: if I extend one of the text frames, the first word of the second line changes to dark blue. I tried to change font, export the file to idml, nothing works

DJClements
Known Participant
April 19, 2021

Hi jmlevy, I also saw this in some examples when I was trying to recreate the problem. I found that the change in colour on the second line comes from where InDesign detects there should be a line break due to the ragged lines setting, but as mentioned in my replies to rob day above, the inclusion of the nested style prevents the ragged lines checkbox from working properly. As soon as the nested style is removed, the ragged lines setting works fine and you'll see the correct break where the colour changes.

jmlevy
Community Expert
Community Expert
April 19, 2021

Can you share the file?

DJClements
Known Participant
April 19, 2021

Hi jmlevy, test file now attached.

rob day
Community Expert
Community Expert
April 19, 2021

In case @jmlevy  does not reply right away, try a Single-line Composer: