summaryrefslogtreecommitdiffstats
path: root/parsers/QuoteSpecialText.java
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2013-08-14 18:55:52 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2013-08-14 18:55:52 +0530
commit4618d216ccee183068725cba0778ff753bb656a4 (patch)
tree842246e2366384d6b82ad8f9bd1e5c29396c44be /parsers/QuoteSpecialText.java
parent54e4ec0cc7f0b58e747729a0c5260044ca4c370f (diff)
parent83e1bf5f0e299b9d99c8e2b01aacd5cda9a37d1c (diff)
merged from the devel branch.
conversion/ConvertDirectory.java: * Changes in how `index.scruff' files are parsed. * StyleChecker checks where the stylesheet needs update/creation parsers/CodeBlocks.java: * code block tag changed from <div class="code"> --> <pre> parsers/Images.java: * image alt text formatted for nice viewing in text terminal * SVGs are recognized by the parser now parsers/QuoteSpecialText.java: * regex changed: styling/style.css * lot of changes to the default CSS.
Diffstat (limited to 'parsers/QuoteSpecialText.java')
-rw-r--r--parsers/QuoteSpecialText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/QuoteSpecialText.java b/parsers/QuoteSpecialText.java
index 76241cc..91e8760 100644
--- a/parsers/QuoteSpecialText.java
+++ b/parsers/QuoteSpecialText.java
@@ -33,7 +33,7 @@ public class QuoteSpecialText implements Parser {
qmap.put(">","&gt;");
}
public String parse(String fileContent) {
- Pattern pattern = Pattern.compile("(\\&\\#35\\;)|(\\&)|(\\<)|(\\>)");
+ Pattern pattern = Pattern.compile("(\\&(\\w+|\\#\\d+)\\;)|(\\&)|(\\<)|(\\>)");
Matcher matcher = pattern.matcher(fileContent);
StringBuffer sbuffer = new StringBuffer();
while(matcher.find() && matcher.group(1)==null) {