Skip to content

Commit

Permalink
Drop section sign § from copyrights aboutcode-org#3567
Browse files Browse the repository at this point in the history
Reference: aboutcode-org#3667
Reported-by: Stefan @stefan6419846
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Feb 24, 2024
1 parent c8409f6 commit 6df90d5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cluecode/copyrights.py
Original file line number Diff line number Diff line change
Expand Up @@ -4128,8 +4128,10 @@ def prepare_text_line(line, dedeb=True, to_ascii=True):

# normalize (possibly repeated) quotes to unique single quote '
# backticks ` and "
.replace('`', u"'")
.replace('"', u"'")
.replace('`', "'")
.replace('"', "'")
# see https://github.com/nexB/scancode-toolkit/issues/3667
.replace('§', " ")
)

if TRACE_TOK:
Expand Down
4 changes: 4 additions & 0 deletions tests/cluecode/data/copyrights/misco2/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016§ The Android Open Source Project
-->
4 changes: 4 additions & 0 deletions tests/cluecode/data/copyrights/misco2/pom.xml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
what:
- copyrights
copyrights:
- Copyright (c) 2016 The Android Open Source Project

0 comments on commit 6df90d5

Please sign in to comment.