You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a draft where the document creation date appears after line 15, such as happens with long author lists, the _stripheaders() helper method breaks the first page as ending just before the date. Its paginated output is then used by PlaintextDraft to extract (among other things) the title and creation date. When doing so, it is assumed that both these fields will appear on the first page of the draft. As a result, neither can be extracted when the author list is long.
This can be fixed by modifying PlaintextDraft to consider the first two pages instead of just the first page when extracting these fields.
Alternatively, _stripheaders() could be changed, but it's quite intentional in doing it this way so I'm worried that the change might have other consequences.
Describe the issue
On a draft where the document creation date appears after line 15, such as happens with long author lists, the
_stripheaders()
helper method breaks the first page as ending just before the date. Its paginated output is then used byPlaintextDraft
to extract (among other things) the title and creation date. When doing so, it is assumed that both these fields will appear on the first page of the draft. As a result, neither can be extracted when the author list is long.This can be fixed by modifying
PlaintextDraft
to consider the first two pages instead of just the first page when extracting these fields.Alternatively,
_stripheaders()
could be changed, but it's quite intentional in doing it this way so I'm worried that the change might have other consequences.Code of Conduct
The text was updated successfully, but these errors were encountered: