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

last line center-justified when last pargraph is splited to next page. #658

Open
benoitrolland opened this issue May 10, 2022 · 1 comment

Comments

@benoitrolland
Copy link

benoitrolland commented May 10, 2022

We have a text justification problem that only arize when the last paragraph of a page is splited to the next page. +
Attribute data-align-last-split-element="justify" is set. It triggers a css that set: text-align-last: justify.
Trying to change it like that:

file:css/webpdf/custom.css:

[data-align-last-split-element='justify'] {
    text-align-last: left;
}

doesn't solve the problem ...

Let find how to reproduce it:
lastLineJustify.zip

As you can see on the picture, only last line of sentences pertaining to a split paragraphs ar "center-justified", where I excpect it to be left justified as usual.
I am still looking for a css workaround.

image

@benoitrolland benoitrolland changed the title last line centered justified when last pargraph is splited to next page. last line centered-justified when last pargraph is splited to next page. May 10, 2022
@benoitrolland benoitrolland changed the title last line centered-justified when last pargraph is splited to next page. last line center-justified when last pargraph is splited to next page. May 10, 2022
@benoitrolland
Copy link
Author

I could override the cases: since it is related to dialog shaped text. I inserted a dialogue class arround quotation marks ""

[.dialogue]#« - how are you ? +
- fine thanks»#

or:

[.dialogue]
--
« - how are you ? +
- fine thanks.»
--

and applied the following style:
.dialogue { font-style: italic; text-align-last: left; }

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

No branches or pull requests

2 participants