diff --git a/package.json b/package.json index 594cbb7..e5e94fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "org.bytedo.epub", - "version": "1.0.1", + "version": "1.1.0", "description": "E-pub Reader", "main": "src/main.js", "scripts": { diff --git a/src/tools/socket.js b/src/tools/socket.js index 70c0a6b..1febe98 100644 --- a/src/tools/socket.js +++ b/src/tools/socket.js @@ -86,6 +86,10 @@ module.exports = function(app, createViewWindow) { .replace(/
/g, '')
                     .replace(/<\/code><\/pre>/g, '')
 
+                  htm = htm
+                    .replace(/
/g, '')
+                    .replace(/<\/pre>/g, '')
+
                   htm = htm.replace(/([\w\W]*?)<\/wc-code>/g, function(
                     m,
                     s