diff options
author | Finn Bock <bckfnn@apache.org> | 2004-02-05 17:59:30 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-02-05 17:59:30 +0000 |
commit | 457f4f97766f4d93574cf66ef15f732d88da9483 (patch) | |
tree | fac4f339ba4c198a8d7c0033cb29409a4d174bef /src | |
parent | 2a5d0273d0ee5eb008ece5c801416cb2d73fc06f (diff) | |
download | xmlgraphics-fop-457f4f97766f4d93574cf66ef15f732d88da9483.tar.gz xmlgraphics-fop-457f4f97766f4d93574cf66ef15f732d88da9483.zip |
Support for text-indent.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/LineLayoutManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java index a9a4a860b..b86627052 100644 --- a/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/LineLayoutManager.java @@ -178,6 +178,10 @@ public class LineLayoutManager extends InlineStackingLayoutManager { 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) { @@ -618,7 +622,9 @@ public class LineLayoutManager extends InlineStackingLayoutManager { } break; case TextAlign.START: - //indent = 0; + if (prevLineEnd == 0) { + indent = iTextIndent; + } break; case TextAlign.CENTER: indent = (targetWith - realWidth) / 2; |