Reply To: Remove character at the end of a line of wrapped text

Home Page / Forums / General InDesign Topics (CLOSED) / Remove character at the end of a line of wrapped text / Reply To: Remove character at the end of a line of wrapped text

#85221
Peter Kahrel
Participant

> wouldn’t that script apply the ‘Hide’ character style to the last two characters

No: lines[j].characters[-2] means ‘the one-before-last character in lines[j]’

> in a line that ends with a discretionary line break; even if the line ended with a discretionary line break following a letter?

That’s true. But in Mike’s example that wasn’t the case.

P.

This article was last modified on May 25, 2016

Comments (0)

Loading comments...