1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-03 23:48:07 +03:00
WeasyPrint/tests
Guillaume Ayoub 7a5c285c87 Don’t remove inline block’s trailing space twice
When we calculate the minimum width of an inline block, the size of the
trailing space is already removed by split_first_line. There’s no need to
remove it twice.

We should probably fix split_first_line to remove the trailing space only when
it’s been asked to. But there’s no obvious situation when we want the minimum
width to include trailing spaces, as the minimum size requires line breaks
everywhere, including after each space.

At least, this commit doesn’t remove trailing spaces twice.

Related to #1520.
2021-12-13 13:08:01 +01:00
..
draw Split absolute boxes 2021-12-12 18:58:04 +01:00
layout Fix footnotes for repaginated documents 2021-12-10 17:51:10 +01:00
resources Add test to make sure woff fonts load and fix typo 2021-11-24 20:10:28 +00:00
__init__.py Packaging! 2020-12-06 20:19:59 +01:00
conftest.py Add an option to return split images when testing PNGs 2021-11-14 19:41:04 +01:00
test_acid2.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_api.py Copy boxes when using them in stacking contexts 2021-11-14 19:41:10 +01:00
test_boxes.py Process whitespaces as soon as box children are set 2021-10-13 09:48:39 +02:00
test_counters.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_css_descriptors.py Packaging! 2020-12-06 20:19:59 +01:00
test_css_validation.py Fix and test line-clamp 2021-08-06 19:05:03 +02:00
test_css.py Rename layout files to follow "display" values 2021-09-13 15:37:29 +02:00
test_float.py Remove float width from inline box available width 2021-10-29 16:06:13 +02:00
test_fonts.py Correct comment on woff font test 2021-11-28 20:41:27 +00:00
test_pdf.py Fix images embedded from multiple pages 2021-11-05 21:59:09 +01:00
test_presentational_hints.py Transform text-align into shorthand 2021-08-24 13:27:59 +02:00
test_stacking.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_target.py Packaging! 2020-12-06 20:19:59 +01:00
test_text.py Don’t remove inline block’s trailing space twice 2021-12-13 13:08:01 +01:00
test_unicode.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
test_variables.py Rename folders and imports in tests 2021-04-19 17:15:53 +02:00
testing_utils.py Display footnotes at the bottom of the page 2021-11-23 13:37:53 +01:00