Added table formattation

This commit is contained in:
Cristian Trapattoni 2011-03-02 17:39:22 +01:00
parent 55b1cfcc27
commit 228acd32df
2 changed files with 59 additions and 10 deletions

View file

@ -858,16 +858,14 @@ namespace ScrewTurn.Wiki {
}
}
if(!bareBones) {
match = TableRegex.Match(sb.ToString());
while(match.Success) {
if(!IsNoWikied(match.Index, noWikiBegin, noWikiEnd, out end)) {
sb.Remove(match.Index, match.Length);
sb.Insert(match.Index, BuildTable(match.Value));
}
ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);
match = TableRegex.Match(sb.ToString(), end);
match = TableRegex.Match(sb.ToString());
while(match.Success) {
if(!IsNoWikied(match.Index, noWikiBegin, noWikiEnd, out end)) {
sb.Remove(match.Index, match.Length);
sb.Insert(match.Index, BuildTable(match.Value));
}
ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);
match = TableRegex.Match(sb.ToString(), end);
}
// Strip out all comments