Skip to content

Commit

Permalink
fix: Broken text layout at page/column break caused by inline SVG
Browse files Browse the repository at this point in the history
- fix #1406
  • Loading branch information
MurakamiShinyu committed Oct 28, 2024
1 parent ed02eae commit ecb01ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/vivliostyle/vgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,7 @@ export class ViewFactory
const checkForcedLineBreakElem = (elem1: Element): boolean | null => {
const { display, position, float } =
this.viewport.window.getComputedStyle(elem1);
if (elem1.localName === "ruby") {
if (elem1.localName === "ruby" || Base.mediaTags[elem1.localName]) {
return false;
}
if (elem1.localName === "br") {
Expand Down

0 comments on commit ecb01ef

Please sign in to comment.