Skip to content

Commit

Permalink
follow-up fix to "fix: hanging-punctuation/text-spacing not working c…
Browse files Browse the repository at this point in the history
…orrectly when a ruby element is adjacent"

The commit 71a95f9 contained an unnecessary change to this issue. Revert that change.
  • Loading branch information
MurakamiShinyu committed May 22, 2022
1 parent 779e0a6 commit bce36d7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/core/src/vivliostyle/text-polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,13 +762,11 @@ class TextSpacingPolyfill {
outerElem.className = "";
}
} else if (
atEndNoHang &&
textSpacing.trimEnd &&
!textSpacing.allowEnd
atEndNoHang
? textSpacing.trimEnd && !textSpacing.allowEnd
: !isAtEndOfLine()
) {
outerElem.className = "viv-ts-auto";
} else if (!atEndNoHang && !isAtEndOfLine()) {
outerElem.className = "";
} else if (!atEnd && hangingPunctuation.allowEnd) {
if (!textSpacing.trimEnd || textSpacing.allowEnd) {
outerElem.className = "viv-ts-space";
Expand Down

1 comment on commit bce36d7

@vercel
Copy link

@vercel vercel bot commented on bce36d7 May 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vivliostyle – ./

vivliostyle-vivliostyle.vercel.app
vivliostyle.vercel.app
vivliostyle-git-master-vivliostyle.vercel.app

Please sign in to comment.