Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header attribute sets header for entire op before it, not just for last line as it should. #2

Closed
djhuistra opened this issue Mar 24, 2024 · 1 comment

Comments

@djhuistra
Copy link

Issue identified: When you add a header in the middle of a section, it seems to make all the text before that header 'header sized'.

This submission

{
    "team": 1,
    "section": 1,
    "last_modified": 1711305676108,
    "text": {
        "ops": [
            {
                "insert": "I love soufflé dessert carrot cake carrot cake I love. Icing gingerbread marzipan gummies cake biscuit cotton candy. Chocolate apple pie biscuit soufflé tootsie roll danish. I love sweet gingerbread bonbon bear claw bonbon jelly beans gummies marshmallow. I love chocolate sugar plum cupcake cotton candy gummies bonbon. Gummi bears muffin I love caramels carrot cake halvah. I love cookie chupa chups tiramisu ice cream. Tart chocolate tootsie roll cheesecake croissant fruitcake icing. Caramels sweet roll marshmallow I love sweet I love sweet roll dessert pastry. Fruitcake jelly beans powder marshmallow dessert. Sweet lollipop pudding cake tiramisu. Chocolate bar dessert cookie chocolate I love.\n\nNobody said it was easy!"
            },
            {
                "attributes": {
                    "header": 2
                },
                "insert": "\n"
            },
            {
                "insert": "Sesame snaps sweet gingerbread tart candy marzipan jujubes brownie lollipop. Marshmallow topping cheesecake macaroon gummi bears ice cream caramels dragée. Apple pie gingerbread I love soufflé soufflé ice cream pie. Cake chocolate bar macaroon oat cake wafer. Danish sugar plum cheesecake fruitcake cupcake tiramisu chocolate cake cake macaroon. Shortbread marzipan candy muffin apple pie sesame snaps bear claw cookie. Carrot cake danish danish gummi bears I love dragée. Jelly-o pudding chocolate fruitcake cake apple pie. Chocolate dessert tiramisu liquorice gingerbread liquorice cheesecake liquorice. I love lemon drops tootsie roll halvah pastry jelly. Dragée tart sugar plum cookie jujubes candy macaroon caramels. I love jelly tart danish I love.\n\n"
            },
            {
                "insert": {
                    "image": "http://localhost:6969/api/image/ad92753a-c62a-4c8f-80c3-c3630b44edd9.png"
                }
            },
            {
                "insert": "\n"
            }
        ]
    }
}

Results in this PDF:
image

@Orange-Murker
Copy link
Owner

This has now been fixed by: 37573e4

See the result below:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants