Changeset 443 for trunk


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

fixes #247

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/readme.txt

    r440 r443  
    109109(C)`. The copyright statement block is defined to start at this line
    110110and ends with the first following line containing no alphanumerical
    111 characters (i.e. line is treated as `other` in statistics). This
     111characters (excluding `prefix`string preceeding `Copyright (C)`). This
    112112copyright statement block is replaced with a new copyright statement
    113113generated from analyzing `svn log`. An author is considered to have
  • 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.