aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown/src/main/java/org/sonar
diff options
context:
space:
mode:
authorFreddy Mallet <freddy.mallet@gmail.com>2011-04-27 23:58:01 +0200
committerFreddy Mallet <freddy.mallet@gmail.com>2011-04-27 23:58:01 +0200
commitffdc8908a25b4f5e071c1797d0bf7b40a9f9d8d5 (patch)
treee04f1b70573262b55883a6953975c7e95f2e4ddd /sonar-markdown/src/main/java/org/sonar
parentf4e12a9527a48da48784dce1345f1014509c19e9 (diff)
downloadsonarqube-ffdc8908a25b4f5e071c1797d0bf7b40a9f9d8d5.tar.gz
sonarqube-ffdc8908a25b4f5e071c1797d0bf7b40a9f9d8d5.zip
SONAR-2384 append target='_blank' when building an hyperlink
Diffstat (limited to 'sonar-markdown/src/main/java/org/sonar')
-rw-r--r--sonar-markdown/src/main/java/org/sonar/markdown/HtmlUrlChannel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlUrlChannel.java b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlUrlChannel.java
index 2158c428f00..5a8522399ea 100644
--- a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlUrlChannel.java
+++ b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlUrlChannel.java
@@ -33,6 +33,6 @@ class HtmlUrlChannel extends RegexChannel<MarkdownOutput> {
@Override
protected void consume(CharSequence token, MarkdownOutput output) {
- output.append("<a href=\"" + token + "\">" + token + "</a>");
+ output.append("<a href=\"" + token + "\" target=\"_blank\">" + token + "</a>");
}
}