From 585aa22325bd535ed224b5431c7abbb37dfc1168 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 13 Dec 2024 21:24:19 -0500 Subject: [PATCH] Fix extraneous space errors in MarkdownCommentTest --- .../internal/javadoc/CoreMarkdownAccessImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/core/manipulation/internal/javadoc/CoreMarkdownAccessImpl.java b/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/core/manipulation/internal/javadoc/CoreMarkdownAccessImpl.java index e59480a457b..e9e5eb8cd3b 100644 --- a/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/core/manipulation/internal/javadoc/CoreMarkdownAccessImpl.java +++ b/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/core/manipulation/internal/javadoc/CoreMarkdownAccessImpl.java @@ -53,9 +53,8 @@ private void init() { fRenderer= HtmlRenderer.builder().extensions(extensions).build(); } - final static String PatternCommon= "[^\r\n&&\\s]*?///[^\r\n&&\\s]*?"; //$NON-NLS-1$ - final static Pattern UnicodePattern= Pattern.compile("(\\\\u000[d,D]\\\\u000[a,A]|\\\\u000[a,A]|\\\\u000[d,D])" + PatternCommon); //$NON-NLS-1$ - final static Pattern Pattern1= Pattern.compile("(\\r\\n?|\\n)" + PatternCommon); //$NON-NLS-1$ + final static Pattern UnicodePattern= Pattern.compile("(\\\\u000[d,D]\\\\u000[a,A]|\\\\u000[a,A]|\\\\u000[d,D])[^\r\n&&\\s]*?///[^\r\n&&\\s]*?"); //$NON-NLS-1$ + final static Pattern Pattern1= Pattern.compile("(\\r\\n?|\\n)[^\r\n&&\\s]*///[^\r\n&&\\s]*"); //$NON-NLS-1$ @Override protected String removeDocLineIntros(String textWithSlashes) {