Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rustdoc warnings in components/layout_2020 #31587

Merged
merged 2 commits into from Mar 8, 2024

Conversation

sandeepB3
Copy link
Contributor

  1. Converted URL in plain text format to clickable links in components/layout_2020/flow/text_run.rs
  2. Fixed unclosed HTML tag warnings in components/layout_2020/flow/mod.rs

  • ./mach doc does not report above stated warnings
  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix Fix as many rustdoc errors as possible #31575
  • These changes do not require tests because they do not change any functionality

Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
@@ -1372,7 +1372,7 @@ fn solve_block_margins_for_in_flow_block_level(pbm: &PaddingBorderMargin) -> (Le
}

/// This is supposed to handle 'justify-self', but no browser supports it on block boxes.
/// Instead, <center> and <div align> are implemented via internal 'text-align' values.
/// Instead, <center/> and <div align/> are implemented via internal 'text-align' values.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Instead, <center/> and <div align/> are implemented via internal 'text-align' values.
/// Instead, `<center>` and `<div align>` are implemented via internal 'text-align' values.

@@ -450,7 +450,7 @@ impl TextRun {
/// Whether or not this character will rpevent a soft wrap opportunity when it
/// comes before or after an atomic inline element.
///
/// From https://www.w3.org/TR/css-text-3/#line-break-details:
/// From <https://www.w3.org/TR/css-text-3/#line-break-details:>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// From <https://www.w3.org/TR/css-text-3/#line-break-details:>
/// From <https://www.w3.org/TR/css-text-3/#line-break-details>:

Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
@atbrakhi atbrakhi changed the title Fix rustdoc warnings in components/layout_2020 Fix rustdoc warnings in components/layout_2020 Mar 8, 2024
@mrobinson mrobinson enabled auto-merge March 8, 2024 14:59
@mrobinson mrobinson added this pull request to the merge queue Mar 8, 2024
Merged via the queue into servo:main with commit 81e6bd9 Mar 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix as many rustdoc errors as possible
2 participants