Skip to content

Commit

Permalink
Remove whitespace at line endings
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 21, 2024
1 parent 12eaa79 commit ed45987
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chrome/content/preferences.xul
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<?xml-stylesheet href="chrome://zotero/skin/preferences.css"?>

<prefwindow
<prefwindow
id="zoteroocr-preferences"
title="Zotero OCR Preferences"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
Expand Down
8 changes: 4 additions & 4 deletions chrome/content/zoteroocr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Zotero.OCR = new function() {
'chrome,titlebar,toolbar,centerscreen' + Zotero.Prefs.get('browser.preferences.instantApply', true) ? 'dialog=no' : 'modal', io
);
};

// disable or enable the nested option to overwrite PDF
this.updatePDFOverwritePref = function () {
setTimeout(() => {
Expand Down Expand Up @@ -181,8 +181,8 @@ Zotero.OCR = new function() {
newNote.parentID = item.id;
yield newNote.saveTx();
}


if (Zotero.Prefs.get("zoteroocr.outputHocr")) {
let contents = yield Zotero.File.getContentsAsync(ocrbase + '.hocr');
// replace the absolute paths of images with relative ones
Expand Down Expand Up @@ -219,7 +219,7 @@ Zotero.OCR = new function() {
parentItemID: item.id
});
}

if (!Zotero.Prefs.get("zoteroocr.outputPNG") && imageListArray) {
// delete image list
yield Zotero.File.removeIfExists(imageList);
Expand Down

0 comments on commit ed45987

Please sign in to comment.