Skip to content

Commit

Permalink
Merge pull request eugenp#91 from Doha2012/master
Browse files Browse the repository at this point in the history
Modify PDF style
  • Loading branch information
Eugen committed Dec 4, 2014
2 parents 351f86c + b4cc881 commit c6cc467
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.w3c.dom.Document;

public class ApacheFOPHeroldTest {
private String[] inputUrls = { "http://inprogress.baeldung.com/?p=1430","https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html" };
private String[] inputUrls = { "http://inprogress.baeldung.com/?p=1430","http://www.baeldung.com/spring-events" };
private String style1 = "src/test/resources/docbook-xsl/fo/docbook.xsl";
private String output_prefix = "src/test/resources/";
private String xmlFile = "src/test/resources/input.xml";
Expand Down
2 changes: 1 addition & 1 deletion apache-fop/src/test/resources/default.her
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ transformation html2docbook;

section HTML {
encoding = "UTF-8";
exclude = ["//*[@id='inner-wrapper']/*[position()<7]" , "//*[@class='post-meta']" , "//*[@class='entry-title']","//*[@id='respond']" ,"//*[@id='comments']","//*[@class='post-entries']","//*[@class='social']/../../h3[last()]" ,"//*[@class='social']/.." ];
exclude = ["//*[@class='custom-design-100']","//*[@class='custom-design-114']", "//form","//*[@src]","//*[@id='inner-wrapper']/*[position()<7]" , "//*[@class='post-meta']" , "//*[@class='entry-title']","//*[@id='respond']" ,"//*[@id='comments']","//*[@class='post-entries']","//*[@class='social']/../../h3[last()]" ,"//*[@class='social']/.." ];
section-numbering-pattern = "(((\d\.)+)?\d?\.?\p{Z}*).*";
}

Expand Down
9 changes: 9 additions & 0 deletions apache-fop/src/test/resources/docbook-xsl/fo/docbook.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,15 @@
</xsl:message>
</xsl:template>

<xsl:template match="screen">
<fo:block font-size="9pt" font-family="monospace"
white-space-treatment="preserve"
linefeed-treatment="preserve"
margin-top="0.5em">
<xsl:apply-templates/>
</fo:block>
</xsl:template>

<!-- ==================================================================== -->

</xsl:stylesheet>

0 comments on commit c6cc467

Please sign in to comment.