summaryrefslogtreecommitdiff
path: root/app/tools/halibut/bk_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/tools/halibut/bk_html.c')
-rw-r--r--app/tools/halibut/bk_html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/tools/halibut/bk_html.c b/app/tools/halibut/bk_html.c
index 4f7c49b..b01d035 100644
--- a/app/tools/halibut/bk_html.c
+++ b/app/tools/halibut/bk_html.c
@@ -2222,6 +2222,8 @@ static void html_words(htmloutput *ho, word *words, int flags,
element_open(ho, "a");
c = utoa_dup(w->text, CS_ASCII);
element_attr(ho, "href", c);
+ if(!strncmp(c, "http://", strlen("http://")) || !strncmp(c, "https://", strlen("https://")))
+ element_attr(ho, "target", "_blank");
sfree(c);
}
break;