Added {max-row-degree} manual variable

This commit is contained in:
Lukas Eder 2013-02-13 21:03:03 +01:00
parent 182a212200
commit 99be1bc0bc
2 changed files with 13 additions and 0 deletions

View File

@ -46,5 +46,12 @@
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>3.0.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

View File

@ -59,6 +59,7 @@ import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.MimeConstants;
import org.jooq.Constants;
import org.joox.Context;
import org.joox.Each;
import org.joox.Match;
@ -127,6 +128,11 @@ public class Transform {
changed = true;
}
if (content.contains("{max-row-degree}")) {
content = content.replace("{max-row-degree}", "" + Constants.MAX_ROW_DEGREE);
changed = true;
}
if (changed) {
$(context.element()).content(content);
}