Skip to content

Commit 64f9128

Browse files
committed
The italic filter for DocEngine now works with any work boundary, not just
whitespace either side of a delimited word or phrase. In other words, this: This _works_: now generates italics for the word 'works' whereas it did no before.
1 parent f5db124 commit 64f9128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/grails/doc/DocEngine.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class BlockQuoteFilter extends RegexTokenFilter {
303303

304304
class ItalicFilter extends RegexTokenFilter {
305305
ItalicFilter() {
306-
super(/\s_([^\n]*?)_\s/);
306+
super(/\b_([^\n]*?)_\b/);
307307
}
308308
void handleMatch(StringBuffer buffer, MatchResult result, FilterContext context) {
309309
buffer << " <em class=\"italic\">${result.group(1)}</em> "

0 commit comments

Comments
 (0)