git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197332
13f79535-47bb-0310-9956-
ffa450edef68
clearPrevIPD();
int iPrevLineEnd = vecInlineBreaks.size();
+ // Adjust available line length by text-indent.
+ if (iPrevLineEnd == 0 && bTextAlignment == TextAlign.START) {
+ availIPD.subtract(new MinOptMax(iTextIndent));
+ }
prevBP = null;
while ((curLM = getChildLM()) != null) {
}
break;
case TextAlign.START:
- //indent = 0;
+ if (prevLineEnd == 0) {
+ indent = iTextIndent;
+ }
break;
case TextAlign.CENTER:
indent = (targetWith - realWidth) / 2;