Why doesn't justifying captions with "justify" work?

The code below:

#show figure: set par(leading: 15pt, justify: true)

#figure(
  rect(
    width: 5cm,
    height: 2cm,
    stroke: 10pt,
  ),
  caption: lorem(50),
)

Produces this result:


My question is: why does justify have no effect, whereas leading does?

I can tell that justify from what you have provided clearly affects the layout here. What is your desired result? Are you aware that this is par.justify, not linebreak.justify, although both serve the same purpose?

1 Like

Sorry, you are correct. I only said it wasn’t justified by the fact that the last line was centered. Unfortunately, I don’t have permission to delete the post.