Changeset 8568


Ignore:
Timestamp:
02/14/05 16:40:19 (16 years ago)
Author:
piso
Message:

parseLine(): fixed formatting bug reported by Chris Wilson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/PerlFormatter.java

    r1695 r8568  
    22 * PerlFormatter.java
    33 *
    4  * Copyright (C) 1998-2003 Peter Graves
    5  * $Id: PerlFormatter.java,v 1.2 2003-04-25 14:20:12 piso Exp $
     4 * Copyright (C) 1998-2005 Peter Graves
     5 * $Id: PerlFormatter.java,v 1.3 2005-02-14 16:40:19 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    227227            if (c == '=' || c == '!') {
    228228                REMatch match = matchRE.getMatch(text.substring(i));
    229                 if (match != null) {
     229                if (match != null && match.getStartIndex() == 0) {
    230230                    final String s = match.toString();
    231231                    final int length = s.length();
Note: See TracChangeset for help on using the changeset viewer.