Skip to content

Commit

Permalink
#440 Forgot about start value for text-align.
Browse files Browse the repository at this point in the history
This should fix the build which was erroring out in NonVisualRegressionTest when testing the box area of a link.
  • Loading branch information
danfickle committed Feb 20, 2020
1 parent 2548d79 commit a31c00e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import org.w3c.dom.Element;

import com.openhtmltopdf.bidi.BidiSplitter;
import com.openhtmltopdf.bidi.ParagraphSplitter.Paragraph;
import com.openhtmltopdf.css.constants.CSSName;
import com.openhtmltopdf.css.constants.IdentValue;
Expand Down Expand Up @@ -337,7 +338,8 @@ private static void startNewInlineLine(LayoutContext c, BlockBox box, int breakA
List<Layer> pendingInlineLayers, int lineOffset, InlineBox inlineBox, LineBreakContext lbContext) {

IdentValue align = inlineBox.getStyle().getIdent(CSSName.TEXT_ALIGN);
if (align != IdentValue.LEFT) {
if (align != IdentValue.LEFT &&
(align != IdentValue.START || inlineBox.getTextDirection() != BidiSplitter.LTR)) {
current.line.trimTrailingSpace(c);
}

Expand Down

0 comments on commit a31c00e

Please sign in to comment.