Browse Source

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

Add trailing newline to exported rules file
pull/2/head
Raymond Hill 10 years ago
parent
commit
3c41bfcb12
  1. 2
      src/js/user-rules.js

2
src/js/user-rules.js

@ -198,7 +198,7 @@ var startImportFilePicker = function() {
function exportUserRulesToFile() { function exportUserRulesToFile() {
vAPI.download({ 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() 'filename': uDom('[data-i18n="userRulesDefaultFileName"]').text()
}); });
} }

Loading…
Cancel
Save