anchor.diff:  
           wikiContext.getPage().setAuthor( currentUser.getName() );        
   
  -        //
  -        //  If this is a comment, then we just append it to the page.
  -        //  If it is a full edit, then we will replace the previous contents.
  -        //
  -        if( comment != null )
  +        StringBuffer pageText = new StringBuffer(wiki.getText( pagereq ));
  +        pageText.append( wiki.safeGetParameter( request, "text" ) );
  +
  +        if( author != null )
           {
  -            StringBuffer pageText = new StringBuffer(wiki.getText( pagereq ));
  -            pageText.append( "\n\n----\n\n" );
  -            pageText.append( wiki.safeGetParameter( request, "text" ) );
  +            Calendar cal = Calendar.getInstance();
  +            SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yyyy");
   
  -            if( author != null )
  -            {
  -                Calendar cal = Calendar.getInstance();
  -                SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yyyy");
  +            pageText.append("\n\n--"+author+", "+fmt.format(cal.getTime()));
  +        }
   
  -                pageText.append("\n\n--"+author+", "+fmt.format(cal.getTime()));
  -            }
  +        pageText.append( "\n\n----\n\n" );
   
  -            wiki.saveText( wikiContext, pageText.toString() );
  -        }
  -        else
  -        {
  -            wiki.saveText( wikiContext,
  -                           wiki.safeGetParameter( request, "text" ) );
  -        }
  +        wiki.saveText( wikiContext, pageText.toString() );
   
           response.sendRedirect(wiki.getViewURL(pagereq));
           return;
  
positive.code: <%@ page import="com.ecyrd.jspwiki.WikiProvider" %>
  <%@ page import="com.ecyrd.jspwiki.auth.AuthorizationManager" %>
  <%@ page import="com.ecyrd.jspwiki.auth.UserProfile" %>
  <%@ page import="com.ecyrd.jspwiki.auth.permissions.EditPermission" %>
  <%@ page errorPage="/Error.jsp" %>
  <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
  
  
negative.code:         wiki = WikiEngine.getInstance( getServletConfig() );
      }
  
      Logger log = Logger.getLogger("JSPWiki");
      WikiEngine wiki;
  %>
  
  