You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/08/06 18:40:39 UTC
[groovy] branch master updated: Tweak highlighting class info in object browser
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 116cf18355 Tweak highlighting class info in object browser
116cf18355 is described below
commit 116cf18355d263bd804f00f5dd2b92fbd7fa4f83
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Aug 7 02:39:49 2022 +0800
Tweak highlighting class info in object browser
---
.../src/main/groovy/groovy/console/ui/ObjectBrowser.groovy | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy
index b0d2b7d30c..094ab6c3ac 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/ObjectBrowser.groovy
@@ -156,10 +156,9 @@ class ObjectBrowser {
VOCABULARY.getLiteralName(it)?.replace("'", '')
}.grep { it } + ['module', 'true', 'false'])) {
content = content.replaceAll(/\b(${ln})\b/, '<b>$1</b>')
- .replace(',', '<b>,</b>')
- .replace(':', '<b>:</b>')
}
- def classLabel = "<html>${content.replace('\n', '<br/>')}</html>"
+ content = content.replace('\n', '<br/>').replace(',', '<b>,</b>').replace(':', '<b>:</b>')
+ def classLabel = "<html>${content}</html>"
label(classLabel)
}
tabbedPane(constraints: CENTER) {