diff --git a/gradle.properties b/gradle.properties index 9337043..25fc194 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ repositoryURL=https://github.com/brailleapps/dotify.task.impl repositorySCM=scm:git:https://github.com/brailleapps/dotify.task.impl.git moduleName=org.daisy.dotify.tasks bundleName=org.daisy.dotify.task.impl -version=5.0.1-SNAPSHOT +version=5.0.1 diff --git a/src/org/daisy/dotify/tasks/impl/input/text/Xml2ObflWriter.java b/src/org/daisy/dotify/tasks/impl/input/text/Xml2ObflWriter.java index 1f04db8..e63c795 100644 --- a/src/org/daisy/dotify/tasks/impl/input/text/Xml2ObflWriter.java +++ b/src/org/daisy/dotify/tasks/impl/input/text/Xml2ObflWriter.java @@ -12,7 +12,7 @@ abstract class Xml2ObflWriter { private final InputStream is; private final OutputStream os; private final String encoding; - + private String rootLang; Xml2ObflWriter(InputStream is, OutputStream os, String encoding) { @@ -21,7 +21,7 @@ abstract class Xml2ObflWriter { this.encoding = encoding; this.rootLang = ""; } - + String getRootLang() { return rootLang; } @@ -46,7 +46,7 @@ void parse() throws IOException { } startPara(pw); pw.print(line.replaceAll("&", "&").replaceAll("<", "<").replaceAll("\"", """)); - if (line.length() == 0) { + if (line.isEmpty()) { pw.print(" "); } endPara(pw); @@ -60,13 +60,13 @@ void parse() throws IOException { } } } - + protected abstract void writePrologue(PrintWriter pw); protected abstract void writeEpilogue(PrintWriter pw); - + protected abstract void startPara(PrintWriter pw); - + protected abstract void endPara(PrintWriter pw); } diff --git a/src/org/daisy/dotify/tasks/impl/input/xml/resource-files/common/xslt-files/book-formats.xsl b/src/org/daisy/dotify/tasks/impl/input/xml/resource-files/common/xslt-files/book-formats.xsl index 2899751..89c7066 100644 --- a/src/org/daisy/dotify/tasks/impl/input/xml/resource-files/common/xslt-files/book-formats.xsl +++ b/src/org/daisy/dotify/tasks/impl/input/xml/resource-files/common/xslt-files/book-formats.xsl @@ -1,5 +1,5 @@ - - + - @@ -98,7 +98,7 @@ - @@ -171,7 +171,7 @@ - @@ -194,7 +194,7 @@ - @@ -230,7 +230,7 @@ - @@ -239,7 +239,7 @@ - + @@ -249,18 +249,18 @@ - + - + - + @@ -286,7 +286,7 @@ - + @@ -329,7 +329,7 @@ - + @@ -339,9 +339,9 @@ - + - + @@ -381,7 +381,7 @@ - + @@ -410,12 +410,12 @@ - + @@ -437,7 +437,7 @@ - + @@ -450,7 +450,7 @@ - +