diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2017-10-17 09:39:20 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2017-10-17 11:24:57 -0700 |
commit | efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 (patch) | |
tree | 66fa87d72ee1c1254baf153756888c49c3d2692f /python/tidy/servo_tidy/tidy.py | |
parent | aa3122e7d1beb6c72868baf80d565b0760641b1d (diff) | |
download | servo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.tar.gz servo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.zip |
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.
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 2 |
1 files changed, 1 insertions, 1 deletions
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://.+>|https://.+)$") # Pattern representing a line with comment or attribute comment_patt = re.compile("^\s*(///?.+|#\[.+\])$") |