From 5b63f63ba00cad34501b30580b935d431d69bd2c Mon Sep 17 00:00:00 2001 From: lvmingfu Date: Tue, 22 Feb 2022 10:28:46 +0800 Subject: [PATCH] fix white name function in link_lint --- tools/link_detection/link_lint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/link_detection/link_lint.py b/tools/link_detection/link_lint.py index 6725c007b3..e9948c7ea9 100644 --- a/tools/link_detection/link_lint.py +++ b/tools/link_detection/link_lint.py @@ -121,6 +121,7 @@ def get_white_urls(white_file="filter_linklint.txt"): except Exception: with open(white_file, "r", encoding="GBK") as f: urls = f.readlines() + urls = [u.replace("\n", "") for u in urls] else: urls = [] return urls -- Gitee