Patch on repo latest

2012-01-14
2013-04-30
  • Nobody/Anonymous

    I cam across a small bug which prevented me from generating my pages. Here is the patch. I'm not sure the fix is the right one, the problem could be earlier in the hilighting process.

    Index: src/net/sf/xslthl/CharIter.java

    -- src/net/sf/xslthl/CharIter.java (revision 121)
    +++ src/net/sf/xslthl/CharIter.java (working copy)
    @@ -233,6 +233,9 @@
    if (end >= length) {
    end = length - 1;
    }
    + if (position + diff >= end) {
    + return false;
    + }
    return buffer.substring(position + diff, end).equalsIgnoreCase(
            prefix);
    }

     
  • Nobody/Anonymous

    Patch worked also for me!

     
  • Maarten

    Maarten - 2012-04-09

    Yep this does the trick, please continue with this project and add the patch!

     
  • Jirka Kosek

    Jirka Kosek - 2012-07-28

    Thanks, I have added patch into codebase.

     

Log in to post a comment.