Skip to content

Fix Javadoc code block formatting #9955

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

Merged
merged 3 commits into from
Nov 4, 2021

Conversation

labkey-tchad
Copy link
Contributor

@labkey-tchad labkey-tchad commented Oct 20, 2021

Description

Several classes use the <code> tag for for javadoc code blocks. This tag doesn't maintain formatting and should be combined with a <pre> tag (as is done in most classes). Additionally '<', '>', and '@' characters needs to be escaped in plain HTML javadoc.

Motivation and Context

The unformatted code blocks result in badly formatted documentation and unescaped characters result broken or incomplete documentation. For instance, the doc for WebDriverDecorator is cut short by an unescaped '@'.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@CLAassistant
Copy link

CLAassistant commented Oct 20, 2021

CLA assistant check
All committers have signed the CLA.

@labkey-tchad labkey-tchad marked this pull request as draft October 21, 2021 20:34
@labkey-tchad labkey-tchad marked this pull request as ready for review October 25, 2021 18:31
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@AutomatedTester AutomatedTester merged commit 6eff56e into SeleniumHQ:trunk Nov 4, 2021
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
* Fix Javadoc code block formatting

* Use `<code>` instead of `{code}` and encode '@', '<', and '>'

* Fix flipped closing tags
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.

3 participants