diff --git a/source/de/anomic/data/wikiCode.java b/source/de/anomic/data/wikiCode.java index fabe4f026..b2963ea0a 100644 --- a/source/de/anomic/data/wikiCode.java +++ b/source/de/anomic/data/wikiCode.java @@ -41,6 +41,9 @@ // the intact and unchanged copyright notice. // Contributions and changes to the program code must be marked as such. +// Contains contributions from Alexander Schier [AS] +// and Marc Nause [MN] + package de.anomic.data; import java.io.BufferedReader; @@ -108,6 +111,19 @@ public class wikiCode { // format lines if (result.startsWith(" ")) result = "" + result + ""; if (result.startsWith("----")) result = "
"; + + // citings contributed by [MN] + if(result.startsWith(":")){ + String head = ""; + String tail = ""; + while(result.startsWith(":")){ + head = head + "
"; + tail = tail + "
"; + result = result.substring(1); + } + result = head + result + tail +"\n"; + } + // end contrib [MN] // format headers if ((p0 = result.indexOf("====")) >= 0) { @@ -148,6 +164,14 @@ public class wikiCode { result.substring(p1 + 2); } + //* definition lists contributed by [MN] (primitive prototype, needs work) + if(result.startsWith(";")){ + if((p0 = result.indexOf(":")) > 0){ + result = "
\n
" + result.substring(1,p0) + "
\n
" + result.substring(p0+1) +"
\n"; + } + } + // end contrib [MN] + //* unorderd Lists contributed by [AS] //** Sublist if(result.startsWith(ListLevel + "*")){ //more stars