shelfgot / TorahLibraryAddOnForDocs

A Google Docs add-on for Sefaria, currently published as "Sefaria Library" in the Google Workspace Marketplace.
10 stars 1 forks source link

Chapter-Spanning references - strange numbering #23

Closed EliezerIsrael closed 9 years ago

EliezerIsrael commented 9 years ago

If I insert a text with a chapter-spanning reference like Genesis 45:8-46:8, the text is inserted correctly, but the numbering is off. With this example, two numbers appear an '8' and a '9'.

I believe the reason is that the api will return a deeper list (like this: [[]]) with a query like this. In a single-chapter query, the API will return a simple list (like this: []).

shelfgot commented 9 years ago

I'll check for this be seeing how many colons there are in the given user input.

shelfgot commented 9 years ago

Spanning is fixed using the "spanning" node in the json