From b8d64c601db22130659b92af1a69a30a73b3163e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Bartoszkiewicz?= Date: Wed, 5 Oct 2011 21:33:30 +0200 Subject: [PATCH 1/1] =?utf8?q?Obs=C5=82uga=20komentarzy.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- man-symlinker | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/man-symlinker b/man-symlinker index aa90e38..df13d06 100755 --- a/man-symlinker +++ b/man-symlinker @@ -22,10 +22,10 @@ def process_file(name): s = f.read(MAX_LEN+1) if len(s) > MAX_LEN: return False - s = s.strip() - if '\n' in s: - return False - m = SO_RE.search(s) + lines = [line for line in s.rstrip().split('\n') if not line.startswith('.\\"')] + if len(lines) != 1: + return False + m = SO_RE.search(lines[0]) if not m: return False link = m.group(1) -- 2.45.2