-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements: - Use Go doc links introduced in Go 1.19 - Separate paragraphs so they are rendered as separate blocks of text fixes aws/aws-sdk-go-v2#2597
- Loading branch information
Showing
5 changed files
with
79 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...es/software/amazon/smithy/go/codegen/smithy-tests/enum-shape-test/expected/types/enums.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
...oftware/amazon/smithy/go/codegen/smithy-tests/int-enum-shape-test/expected/types/enums.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,11 +25,7 @@ private static Stream<Arguments> cases() { | |
), | ||
Arguments.of( | ||
"<a href=\"https://example.com\">a link</a>", | ||
"a link (https://example.com)" | ||
), | ||
Arguments.of( | ||
"<a href=\" https://example.com\">a link</a>", | ||
"a link (https://example.com)" | ||
"[a link]\n\n[a link]: https://example.com" | ||
), | ||
Arguments.of( | ||
"<a>empty link</a>", | ||
|
@@ -49,15 +45,15 @@ private static Stream<Arguments> cases() { | |
), | ||
Arguments.of( | ||
"<ul> <li> <p>Testing 1 2 3</p> </li><li> <p>FooBar</p></li></ul>", | ||
" - Testing 1 2 3\n - FooBar" | ||
" - Testing 1 2 3\n\n - FooBar" | ||
), | ||
Arguments.of( | ||
"<ul> <li><code>Testing</code>: 1 2 3</li> <li>FooBar</li> </ul>", | ||
" - Testing : 1 2 3\n - FooBar" | ||
), | ||
Arguments.of( | ||
"<ul> <li><p><code>FOO</code> Bar</p></li><li><p><code>Xyz</code> ABC</p></li></ul>", | ||
" - FOO Bar\n - Xyz ABC" | ||
" - FOO Bar\n\n - Xyz ABC" | ||
), | ||
Arguments.of( | ||
"<ul><li> foo</li><li>\tbar</li><li>\nbaz</li></ul>", | ||
|
@@ -90,37 +86,39 @@ private static Stream<Arguments> cases() { | |
+ " configuration, see " | ||
+ "<a href=\" https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html\">" | ||
+ "Cross-Region Replication (CRR)</a> in the <i>Amazon S3 Developer Guide</i>. </p>", | ||
"Deletes the replication configuration from the bucket. For information about\n" + | ||
"replication configuration, see Cross-Region Replication (CRR) (https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html)\n" + | ||
"in the Amazon S3 Developer Guide." | ||
" Deletes the replication configuration from the bucket. For information about\n" + | ||
"replication configuration, see [Cross-Region Replication (CRR)]in the Amazon S3 Developer Guide.\n\n" + | ||
"[Cross-Region Replication (CRR)]: https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html" | ||
), | ||
Arguments.of( | ||
"* foo\n* bar", | ||
" - foo\n - bar" | ||
), | ||
Arguments.of( | ||
"[a link](https://example.com)", | ||
"a link (https://example.com)" | ||
"[a link]\n\n[a link]: https://example.com" | ||
), | ||
Arguments.of("", ""), | ||
Arguments.of("<!-- foo bar -->", ""), | ||
Arguments.of("# Foo\nbar", "Foo\nbar"), | ||
Arguments.of("<h1>Foo</h1>bar", "Foo\nbar"), | ||
Arguments.of("## Foo\nbar", "Foo\nbar"), | ||
Arguments.of("<h2>Foo</h2>bar", "Foo\nbar"), | ||
Arguments.of("### Foo\nbar", "Foo\nbar"), | ||
Arguments.of("<h3>Foo</h3>bar", "Foo\nbar"), | ||
Arguments.of("#### Foo\nbar", "Foo\nbar"), | ||
Arguments.of("<h4>Foo</h4>bar", "Foo\nbar"), | ||
Arguments.of("##### Foo\nbar", "Foo\nbar"), | ||
Arguments.of("<h5>Foo</h5>bar", "Foo\nbar"), | ||
Arguments.of("###### Foo\nbar", "Foo\nbar"), | ||
Arguments.of("<h6>Foo</h6>bar", "Foo\nbar"), | ||
Arguments.of("# Foo\nbar", "Foo\n\nbar"), | ||
Arguments.of("<h1>Foo</h1>bar", "Foo\n\nbar"), | ||
Arguments.of("## Foo\nbar", "Foo\n\nbar"), | ||
Arguments.of("<h2>Foo</h2>bar", "Foo\n\nbar"), | ||
Arguments.of("### Foo\nbar", "Foo\n\nbar"), | ||
Arguments.of("<h3>Foo</h3>bar", "Foo\n\nbar"), | ||
Arguments.of("#### Foo\nbar", "Foo\n\nbar"), | ||
Arguments.of("<h4>Foo</h4>bar", "Foo\n\nbar"), | ||
Arguments.of("##### Foo\nbar", "Foo\n\nbar"), | ||
Arguments.of("<h5>Foo</h5>bar", "Foo\n\nbar"), | ||
Arguments.of("###### Foo\nbar", "Foo\n\nbar"), | ||
Arguments.of("<h6>Foo</h6>bar", "Foo\n\nbar"), | ||
Arguments.of("Inline `code`", "Inline code"), | ||
Arguments.of("```\ncode block\n ```", " code block"), | ||
Arguments.of("```java\ncode block\n ```", " code block"), | ||
Arguments.of("foo<br/>bar", "foo\n\nbar"), | ||
Arguments.of(" <p>foo</p>", "foo") | ||
Arguments.of(" <p>foo</p>", "foo"), | ||
Arguments.of("<p>paragraph one</p><p>paragraph two</p>", "paragraph one\n\nparagraph two"), | ||
Arguments.of("<a href=\"mailto:[email protected]\">someone</a>", "someone") | ||
); | ||
} | ||
} |