From efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 17 Oct 2017 09:39:20 -0700 Subject: Fix commonmark Markdown warnings in docs, part 1 Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments. --- python/tidy/servo_tidy/tidy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/tidy/servo_tidy/tidy.py') diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 038ec900755..f9571298562 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -852,7 +852,7 @@ def check_spec(file_name, lines): macro_patt = re.compile("^\s*\S+!(.*)$") # Pattern representing a line with comment containing a spec link - link_patt = re.compile("^\s*///? https://.+$") + link_patt = re.compile("^\s*///? (|https://.+)$") # Pattern representing a line with comment or attribute comment_patt = re.compile("^\s*(///?.+|#\[.+\])$") -- cgit v1.2.3