Merge pull request #285 from johnkeeping/export-text-file

Add trailing newline to exported rules file
pull/2/head
Raymond Hill 10 years ago
commit 3c41bfcb12

@ -198,7 +198,7 @@ var startImportFilePicker = function() {
function exportUserRulesToFile() {
vAPI.download({
'url': 'data:text/plain,' + encodeURIComponent(rulesFromHTML('#diff .left li')),
'url': 'data:text/plain,' + encodeURIComponent(rulesFromHTML('#diff .left li') + '\n'),
'filename': uDom('[data-i18n="userRulesDefaultFileName"]').text()
});
}

Loading…
Cancel
Save