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 | |
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')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 2 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/speclink.rs | 4 |
2 files changed, 3 insertions, 3 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*(///?.+|#\[.+\])$") diff --git a/python/tidy/servo_tidy_tests/speclink.rs b/python/tidy/servo_tidy_tests/speclink.rs index 7cf5031a7bd..81828055c06 100644 --- a/python/tidy/servo_tidy_tests/speclink.rs +++ b/python/tidy/servo_tidy_tests/speclink.rs @@ -19,11 +19,11 @@ impl SpecLinkMethods for SpecLink { fn Foo() {} /// A spec link. - /// https://example.com/ + /// <https://example.com/> fn Foo() {} /// A spec link. - /// https://example.com/ + /// <https://example.com/> /// Doc comments are OK // Regular comments are OK #[allow(attributes_too)] |