From 0f90a7c4938bc28ffa3ab9786f97a0fdf9b924a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Au=C3=9F?= Date: Tue, 6 Jan 2015 23:43:13 +0100 Subject: [PATCH] Fix failing main css export --- .../ac/tuwien/ims/latex2mobiformulaconv/converter/Converter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/converter/Converter.java b/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/converter/Converter.java index c58d667..e1dbbf8 100644 --- a/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/converter/Converter.java +++ b/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/converter/Converter.java @@ -265,6 +265,7 @@ private File saveHtmlFile(Document document) { } catch (FileAlreadyExistsException e) { // do nothing } + mainCssIs = classLoader.getResourceAsStream(MAIN_CSS_FILENAME); Files.copy(mainCssIs, markupDir.resolve(MAIN_CSS_FILENAME), StandardCopyOption.REPLACE_EXISTING); Files.copy(tempFilepath, markupDir.resolve(tempFilepath.getFileName()), StandardCopyOption.REPLACE_EXISTING);