Use correct HTML element for inline code #11408
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For inline code entries the
<code>
element should be used instead of the<pre>
element which is a block element.Using an incorrect element causes inappropriate formatting across our HTML guides and reports. This problem has been discovered during work on issue:
OpenSCAP/openscap-report#212
Before:
![image](https://private-user-images.githubusercontent.com/9050916/293192841-6bbf5f15-f9be-4f22-aa41-6815f4a8ef1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjU3MzIsIm5iZiI6MTcyNjE2NTQzMiwicGF0aCI6Ii85MDUwOTE2LzI5MzE5Mjg0MS02YmJmNWYxNS1mOWJlLTRmMjItYWE0MS02ODE1ZjRhOGVmMWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTJUMTgyMzUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjMxNzg5ZjU2Yzg4MWYxOWFlMDY5YjY0OTE0OWJiM2Y5ZTIyNmNmMWI2NTEyMmExOTRhOTUxZjdl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