Merge "warn.py: have URLs open in new tabs"

This commit is contained in:
Treehugger Robot 2017-04-25 17:05:07 +00:00 committed by Gerrit Code Review
commit 7ffb8c8fa8
1 changed files with 3 additions and 2 deletions

View File

@ -2463,10 +2463,11 @@ scripts_for_warning_groups = """
if (FlagURL == "") return line;
if (FlagSeparator == "") {
return line.replace(ParseLinePattern,
"<a href='" + FlagURL + "/$1'>$1</a>:$2:$3");
"<a target='_blank' href='" + FlagURL + "/$1'>$1</a>:$2:$3");
}
return line.replace(ParseLinePattern,
"<a href='" + FlagURL + "/$1" + FlagSeparator + "$2'>$1:$2</a>:$3");
"<a target='_blank' href='" + FlagURL + "/$1" + FlagSeparator +
"$2'>$1:$2</a>:$3");
}
function createArrayOfDictionaries(n) {
var result = [];