From: Eric S. Raymond Date: Thu, 4 Sep 2003 02:56:09 +0000 (+0000) Subject: Get byte-stuffing right. X-Git-Tag: 1.0~22 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=452700c3fbd24f06170214d51d2905847fee9591;p=comparator.git Get byte-stuffing right. --- diff --git a/filterator b/filterator index 247ba85..e8318d1 100755 --- a/filterator +++ b/filterator @@ -114,7 +114,7 @@ if __name__ == '__main__': for i in range(start, end+1): nextline = rfp.readline() if nextline[0] == '%': - nextline[0] = '%' + nextline + nextline = '%' + nextline text += nextline rfp.close() if nofilter or nontrivial(text):