Skip to content

Commit

Permalink
Merge pull request #163 from ERosendo/main
Browse files Browse the repository at this point in the history
refactor(CitationBase): Updates style of the span method
  • Loading branch information
mlissner authored Feb 12, 2024
2 parents a258d07 + 7aae918 commit 4190008
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions eyecite/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ def matched_text(self):
def span(self):
"""Start and stop offsets in source text for matched_text()."""
return (
self.span_start
if self.span_start is not None
else self.token.start,
(
self.span_start
if self.span_start is not None
else self.token.start
),
self.span_end if self.span_end is not None else self.token.end,
)

Expand Down

0 comments on commit 4190008

Please sign in to comment.