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

#85222
Ari Singer
Member

Sorry, just noticed a flaw in my code. I wrote a single ‘=’ instead of ‘==’. So here’s the fixed code:

if ((lines[j].characters[-1].contents == SpecialCharacters.DISCRETIONARY_LINE_BREAK) && (lines[j].characters[-2].contents == ",")) {
lines[j].characters[-2].appliedCharacterStyle = 'Hide';

Unfortunately, for whatever reason, I can’t always edit my posts :(

This article was last modified on May 25, 2016

Comments (0)

Loading comments...