Patchouli (Fabric/Quilt)

Patchouli (Fabric/Quilt)

25M Downloads

Error with text wrapping

aaronhowser1 opened this issue ยท 2 comments

commented

Mod loader

Forge

Minecraft version

1.18.2

Patchouli version

Patchouli-1.18.2-67

Modloader version

Forge 39.0.64

Modpack info

No response

The latest.log file

Too big, I'll put the file lower down

Issue description

Using this page:

        {
            "type":"patchouli:spotlight",
            "item":"laserio:laser_wrench",
            "text":"The Laser Wrench allows you to connect Nodes, allowing their Cards to interact.$(br2)Sneak right-click one Node with the Wrench, then right-click another to connect them.$(br2)Two Nodes that both connect to a third, but not each other, still count as connected."
        },

makes it look like this, which is mostly what I want:
image

However, if I color the Laser Wrench text like this:

        {
            "type":"patchouli:spotlight",
            "item":"laserio:laser_wrench",
            "text":"The $(item)Laser Wrench$() allows you to connect Nodes, allowing their Cards to interact.$(br2)Sneak right-click one Node with the Wrench, then right-click another to connect them.$(br2)Two Nodes that both connect to a third, but not each other, still count as connected."
        },

the text wrapping breaks
image

Steps to reproduce

No response

Other information

latest.log

commented

Oh it might be the squishing actually? I moved the final paragraph to a different page, and it's working fine now
image

commented

Yep, it's squishing because default text overflow management mode tries to compress the text if it doesn't fit into page. I already suggested to grant us the ability to fix that per book in #506.