Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…448#25448

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2614 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
low012 committed Sep 18, 2006
1 parent 3aac5b2 commit f9a5b55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/de/anomic/data/wikiCode.java
Expand Up @@ -1045,12 +1045,12 @@ private String pairReplace(String input, String pat, String repl1, String repl2)
*/
public String transformLine(String result, plasmaSwitchboard switchboard) {
//If HTML has not bee replaced yet (can happen if method gets called in recursion), replace now!
if (!replacedHTML){
if (!replacedHTML || preformattedSpan){
result = replaceHTMLonly(result);
replacedHTML = true;
}
//If special characters have not bee replaced yet, replace now!
if (!replacedCharacters){
if (!replacedCharacters || preformattedSpan){
result = replaceCharacters(result);
replacedCharacters = true;
}
Expand All @@ -1059,10 +1059,12 @@ public String transformLine(String result, plasmaSwitchboard switchboard) {
if ((result.indexOf("[=")>=0)||(result.indexOf("=]")>=0)||(escapeSpan)){
result = escapeTag(result, switchboard);
}

//check if line contains preformatted symbols or if we are in a preformatted sequence already.
else if ((result.indexOf("<pre>")>=0)||(result.indexOf("</pre>")>=0)||(preformattedSpan)){
if ((result.indexOf("<pre>")>=0)||(result.indexOf("</pre>")>=0)||(preformattedSpan)){
result = preformattedTag(result, switchboard);
}

//transform page as usual
else {

Expand Down

0 comments on commit f9a5b55

Please sign in to comment.