diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-05-19 12:49:34 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-05-19 12:49:34 +0200 |
commit | 1a2fa7047b27bab90c6d4bc07463825f6712bc2a (patch) | |
tree | c5b327b86c3379905d288433e5e7e371a0089eee | |
parent | 01d9d4d751e6281c48915c1b45b5b237d2d4e843 (diff) | |
download | spdx-utils-linux-5.2.tar.gz |
lcheck: Better normalization and add missing LF for comment patchinglinux-5.2
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rwxr-xr-x | lcheck.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -62,6 +62,15 @@ def normalize(txt): l = l.replace(';', ' ').strip() l = l.replace(':', ' ').strip() l = l.replace('/', ' ').strip() + l = l.replace('(', ' ').strip() + l = l.replace(')', ' ').strip() + l = l.replace('-', ' ').strip() + l = l.replace('"', ' ').strip() + l = l.replace('|', ' ').strip() + l = l.replace('\'', ' ').strip() + l = l.replace('`', ' ').strip() + l = l.replace('<', ' ').strip() + l = l.replace('>', ' ').strip() while l.find(' ') >= 0: l = l.replace(' ', ' ') @@ -820,7 +829,7 @@ class scanentry(object): if ls.endswith('*/'): continue j += 1 - self.patch.append('/*n') + self.patch.append('/*\n') start_bp_comment = j continue # HACK |