aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown/src/main/java
diff options
context:
space:
mode:
authorFreddy Mallet <freddy.mallet@gmail.com>2011-04-26 16:21:59 +0200
committerFreddy Mallet <freddy.mallet@gmail.com>2011-04-26 16:21:59 +0200
commitcb7d0ffc0a45a23674064a956414763372dba86d (patch)
tree249f5d1b19fc8318db077da628c67b23d77ef4ea /sonar-markdown/src/main/java
parent43888ce6c210e5502bf8bb52e5762906aa50c70c (diff)
downloadsonarqube-cb7d0ffc0a45a23674064a956414763372dba86d.tar.gz
sonarqube-cb7d0ffc0a45a23674064a956414763372dba86d.zip
SONAR-2384 Fix a bug on HtmlListChannel which was due to CodeBuffer.length() method and make the HtmlEmphasisChannel handle sentence
Diffstat (limited to 'sonar-markdown/src/main/java')
-rw-r--r--sonar-markdown/src/main/java/org/sonar/markdown/HtmlEmphasisChannel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlEmphasisChannel.java b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlEmphasisChannel.java
index 392a37aa345..d59b3f3adb2 100644
--- a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlEmphasisChannel.java
+++ b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlEmphasisChannel.java
@@ -29,7 +29,7 @@ import org.sonar.channel.RegexChannel;
class HtmlEmphasisChannel extends RegexChannel<MarkdownOutput> {
public HtmlEmphasisChannel() {
- super("\\*[^\n\r\\*\\s]++\\*");
+ super("\\*[^\\s\\*][^\n\r]+?[^\\s\\*]\\*");
}
@Override