}
// new LinkedArea to gather up inlines
- LinkSet ls = new LinkSet(externalDest);
+ LinkSet ls = new LinkSet(externalDest, area);
Page p = area.getPage();
for (int i = this.marker; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);
fo.setLinkSet(ls);
-
+
Status status;
if ((status = fo.layout(area)).isIncomplete()) {
this.marker = i;
ls.applyAreaContainerOffsets(ac);
- // comment this out to see individual words linked
- ls.mergeLinks();
+ // pass on command line
+ String mergeLinks = System.getProperty( "links.merge" );
+ if ((null != mergeLinks) && !mergeLinks.equalsIgnoreCase("no")) {
+ ls.mergeLinks();
+ }
p.addLinkSet(ls);