Mercurial > public > html2wiki
comparison src/org/nwoca/ssdt/tools/html2wiki/ReflowTransformer.java @ 12:c1d94c623854
(none)
author | ferrall@nwoca.org |
---|---|
date | Fri, 28 Jan 2011 14:12:34 -0500 |
parents | 99f293bd507f |
children |
comparison
equal
deleted
inserted
replaced
11:8f23347884c0 | 12:c1d94c623854 |
---|---|
3 import java.util.regex.*; | 3 import java.util.regex.*; |
4 | 4 |
5 class ReflowTransformer implements Transformer { | 5 class ReflowTransformer implements Transformer { |
6 | 6 |
7 private Pattern[] patterns = { | 7 private Pattern[] patterns = { |
8 Pattern.compile("(\\n<p>)(.*?)(\\n\\n|\\n<)", Pattern.MULTILINE + Pattern.DOTALL), | 8 Pattern.compile("(\\n<p>)(.*?)(\\n\\n|\\n<)", Pattern.MULTILINE + Pattern.DOTALL)}; |
9 Pattern.compile("(<li>)(.*?)(</li>)", Pattern.MULTILINE + Pattern.DOTALL), | |
10 Pattern.compile("(<td>)([^<]*)(</td>)", Pattern.MULTILINE + Pattern.DOTALL) | |
11 }; | |
12 | 9 |
13 /** | 10 /** |
14 * Default transformer refolows paragraphs, li's and td's. | 11 * Default transformer refolows paragraphs, li's and td's. |
15 * | 12 * |
16 */ | 13 */ |