Highlighted

ampersand causes underline

Participant ,
Aug 12, 2020

Copy link to clipboard

Copied

I have a statictext that contains an ampersand.  This effects the underlining of the next character and no ampersand.

The 'fix' of doubling up the ampersands simply effects two ampersands (neither underlined).

Any ideas, please?

 

Win10 : ExtendScript Toolkit : Javascript

Adobe Community Professional
Correct answer by r-bin | Adobe Community Professional
var d = new Window("dialog");

d.add("statictext", undefined, "aaaa &&&& bbb");       // CS6
d.add("statictext", undefined, "aaaa &&&\u202B bbb");  // СС2018
d.add("statictext", undefined, "aaaa &&&\u200B bbb");  // СС2018

d.show();
TOPICS
Actions and scripting, Bug, Problem or error, Windows

Views

88

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

ampersand causes underline

Participant ,
Aug 12, 2020

Copy link to clipboard

Copied

I have a statictext that contains an ampersand.  This effects the underlining of the next character and no ampersand.

The 'fix' of doubling up the ampersands simply effects two ampersands (neither underlined).

Any ideas, please?

 

Win10 : ExtendScript Toolkit : Javascript

Adobe Community Professional
Correct answer by r-bin | Adobe Community Professional
var d = new Window("dialog");

d.add("statictext", undefined, "aaaa &&&& bbb");       // CS6
d.add("statictext", undefined, "aaaa &&&\u202B bbb");  // СС2018
d.add("statictext", undefined, "aaaa &&&\u200B bbb");  // СС2018

d.show();
TOPICS
Actions and scripting, Bug, Problem or error, Windows

Views

89

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 12, 2020 0
Most Valuable Participant ,
Aug 12, 2020

Copy link to clipboard

Copied

Try using two ampersands instead of one.

JJMack

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 12, 2020 0
Participant ,
Aug 13, 2020

Copy link to clipboard

Copied

Quoting from my original: "The 'fix' of doubling up the ampersands simply effects two ampersands (neither underlined)."

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 13, 2020 0
Adobe Community Professional ,
Aug 12, 2020

Copy link to clipboard

Copied

var d = new Window("dialog");

d.add("statictext", undefined, "aaaa &&&& bbb");       // CS6
d.add("statictext", undefined, "aaaa &&&\u202B bbb");  // СС2018
d.add("statictext", undefined, "aaaa &&&\u200B bbb");  // СС2018

d.show();

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 12, 2020 2
Most Valuable Participant ,
Aug 12, 2020

Copy link to clipboard

Copied

Adobe Replaced Flash based ScriptUI in CC 2015 with a HTML based version. There are  issues between versions scripts compatibility issues exists.

JJMack

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 12, 2020 0
Participant ,
Aug 13, 2020

Copy link to clipboard

Copied

That's not material here, but thank you anyway.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 13, 2020 0
Participant ,
Aug 13, 2020

Copy link to clipboard

Copied

Thank you for a quick and correct answer.  Rather ridiculous isn't it that to effect a single ampersand one has to enter "&&&\u200B"?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 13, 2020 0