comparison src/org/nwoca/ssdt/tools/html2wiki/ChapterTransformer.java @ 4:22ed6d93442c

Start modifying transformers to Confluence wiki syntax
author smith@nwoca.org
date Tue, 25 Jan 2011 21:59:31 -0500
parents f8b1ea49d065
children
comparison
equal deleted inserted replaced
3:4417b025157e 4:22ed6d93442c
16 Matcher matcher = chapterPattern.matcher(buffer); 16 Matcher matcher = chapterPattern.matcher(buffer);
17 17
18 boolean first = true; 18 boolean first = true;
19 while (matcher.find( 0 )) { 19 while (matcher.find( 0 )) {
20 buffer.replace(matcher.start(),matcher.end(), 20 buffer.replace(matcher.start(),matcher.end(),
21 "<chapter>" + matcher.group(1) +"</chapter>\n__TOC__" + 21 "<chapter>" + matcher.group(1) + "</chapter>\n{panel}{toc}{panel}");
22 (category == null ? "" : "\n[[Category:" + category + "]]"));
23 first = false; 22 first = false;
24 } 23 }
25 24
26 } 25 }
27 26