Changeset 443 for trunk/lib/File.cc


Ignore:
Timestamp:
Aug 16, 2007, 5:03:07 PM (14 years ago)
Author:
Peter Johansson
Message:

fixes #247

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r439 r443  
    137137      if (found_copyright){
    138138        // check if line is end of copyright statement, i.e. contains
    139         // no alphanumerical character
     139        // no alphanumerical character (except in prefix).
    140140        after_copyright = true;
    141141        for (size_t i=0; i<line.size()&&after_copyright; ++i)
    142           if (isalnum(line[i])) {
     142          if (isalnum(line[i]) && !(i<prefix.size() && prefix[i]==line[i])) {
    143143            after_copyright = false;
    144144            block += line + "\n";
Note: See TracChangeset for help on using the changeset viewer.