'Tab' in a email notification script?

Shane J
Tera Guru

Is there a way to do a TAB in an e-mail notification script?

Here's my current script, but the \t isn't working:

var grr=new GlideRecord('risk');

grr.addQuery('task', current.project);

grr.orderBy('u_number');

grr.query();

while(grr.next()){

template.print(grr.short_description + "\n");

template.print("\t" + "Likelihood: " + grr.probability.getDisplayValue() + "\n");

template.print("\t" + "Severity: " + grr.u_severity_of_impact.getDisplayValue() + "\n");

template.print("\t" + "Plan of Action: " + grr.state.getDisplayValue() + "\n");

template.print("\n");

find_real_file.png

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

As far as I know you cannot use tab character. Instead use this template.space(8);


View solution in original post

2 REPLIES 2

Abhinay Erra
Giga Sage

As far as I know you cannot use tab character. Instead use this template.space(8);


I went digging through other notif scripts and ran across that.   Verified it works.   Thanks!