Merge pull request #1900 from ether/dont-include-file-name-on-import

strip title out of html during import, pesky abiword behavior
pull/1902/head
John McLear 2013-09-21 15:38:51 -07:00
commit 7898c350f7
2 changed files with 5 additions and 2 deletions

View File

@ -151,6 +151,9 @@ exports.doImport = function(req, res, padId)
fs.readFile(destFile, "utf8", function(err, _text){
if(ERR(err, callback)) return;
text = _text;
// Title needs to be stripped out else it appends it to the pad..
text = text.replace("<title>", "<!-- <title>");
text = text.replace("</title>-->");
//node on windows has a delay on releasing of the file lock.
//We add a 100ms delay to work around this