Some minor bugfixes and improvements (border width, StarMath color, hidden text)
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@173 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
a0b76b3729
commit
5d82772d91
11 changed files with 136 additions and 80 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* version 1.4 (2014-08-27)
|
||||
* version 1.4 (2014-09-07)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -116,11 +116,12 @@ public class EPUBWriter implements OutputFile {
|
|||
}
|
||||
|
||||
private void writeZipEntry(OutputFile file, ZipOutputStream zos) throws IOException {
|
||||
// TODO: Fix this waste of memory :-)
|
||||
// Unfortunately we cannot simply do file.write(zos) because the write method of OutputFile
|
||||
// closes the OutputStream. Hence this suboptimal solution
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
file.write(baos);
|
||||
byte[] content = baos.toByteArray();
|
||||
zos.write(content, 0, content.length);
|
||||
zos.write(content, 0, content.length);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue