fix(pdf): Fix line height issue with superscripts #1165
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.
Fixes #1160
Suggested by @liZe. 1
This fixes the line height issue documented wide.
Screenshots:
RFC 9421:
![Screenshot 2024-11-07 at 11 31 08](https://private-user-images.githubusercontent.com/1027692/383939853-76ba6300-c2b8-4ef2-a55d-ab6899d3dc3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDYwMDYsIm5iZiI6MTczOTEwNTcwNiwicGF0aCI6Ii8xMDI3NjkyLzM4MzkzOTg1My03NmJhNjMwMC1jMmI4LTRlZjItYTU1ZC1hYjY4OTlkM2RjM2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTI1NTA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWUxMmNkNThhOTg0OTc5M2JiM2Y2M2Y5NTY3ZTJhY2UxZmU2MmUxY2QzMGYzZTRmMjVlM2ViYzIyMGEzNjRlYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Lj6fH-x_lSEOYQAy7jwtAQJSLtf-k_HeWgC-A-lo7XM)
RFC 9591:
![Screenshot 2024-11-07 at 11 32 26](https://private-user-images.githubusercontent.com/1027692/383940025-e60909f4-ee3c-486c-a176-a6aec1f98fd3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDYwMDYsIm5iZiI6MTczOTEwNTcwNiwicGF0aCI6Ii8xMDI3NjkyLzM4Mzk0MDAyNS1lNjA5MDlmNC1lZTNjLTQ4NmMtYTE3Ni1hNmFlYzFmOThmZDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTI1NTA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzYzZjUyNzhmOWMyOGVhNTlkMTQzYTNhMTYyZWE4OGM0OWE4ZmMxZjcxOTBkNmY2ZmNlMjcxNTA3MzViNjc4YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.1FH_C9dnJLoKQpWP5UTUv-aneakl-q6LCoxr9gO7dcA)
Footnotes
https://github.com/Kozea/WeasyPrint/issues/2253#issuecomment-2353951920 ↩