How to manage justify and hyphenate inside a box?

Hi,

I have a code fragment which worked like I wanted it before the upgrade to Typst 0.13. Namely, the text inside the first box was right justified without hyphenation. I don’t know why :blush: . Now hyphenation is on, justify off. This isn’t a total surprise, as the place of the paragraph in the scheme of things changed…

...
        #box(width: 89%)[
          #strong(cnt)
          #subcnt
          #box(width: 1fr, repeat[.])
        ]
        #box(width: 7%)[#h(1fr)#it.page()]
...

So I have somehow to add text (because of hyphenate: false) and par (because of justify: true) to my first box. How should I do it gracefully?

UPD

Now it looks like this:

        #box(width: 89%)[
          #set text(hyphenate: false)
          #set par(justify: true)
          #strong(cnt)
          #subcnt
          #box(width: 1fr, repeat[.])
        ]
        #box(width: 7%)[#h(1fr)#it.page()]

Is it a natural solution?

Could you give a minimal but complete example to reproduce the change of behavior?

There was a change in Typst 0.13 for the justification of raw blocks, but I don’t know of a change for other elements.