From eafc116529f193f611f5f9048b969f7e32cae9c8 Mon Sep 17 00:00:00 2001 From: Peter Dell Date: Tue, 27 Dec 2022 02:51:56 +0100 Subject: [PATCH] Open HTTPS links in the online help in new window --- .../src/com/wudsn/ide/lng/help/HTMLWriter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/help/HTMLWriter.java b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/help/HTMLWriter.java index fb94f42d..1ed4df2d 100644 --- a/com.wudsn.ide.lng/src/com/wudsn/ide/lng/help/HTMLWriter.java +++ b/com.wudsn.ide.lng/src/com/wudsn/ide/lng/help/HTMLWriter.java @@ -191,7 +191,11 @@ final class HTMLWriter { if (text == null) { throw new IllegalArgumentException("Parameter 'text' must not be null."); } - return "" + text + ""; + String target =""; + if (href.toLowerCase().startsWith("https://")) { + target=" target=\"_blank\""; + } + return "" + text + ""; } public static String getString(List list) {