Skip to content

Commit

Permalink
Add far-note test
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed May 23, 2015
1 parent bf375d6 commit 9cf473c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/attributes.js
Expand Up @@ -160,6 +160,14 @@ CSL.Attributes["@position"] = function (state, arg) {
}
return false;
});
} else if ("far-note" === tryposition) {
this.tests.push(function (Item, item) {
if (item && item.position == CSL.POSITION_SUBSEQUENT && !item["near-note"]) {
return true;
}
return false;
});

} else {
this.tests.push(maketest(tryposition));
}
Expand Down

0 comments on commit 9cf473c

Please sign in to comment.