Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor fix #122

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Editor fix #122

merged 2 commits into from
Jul 31, 2023

Conversation

bdarcus
Copy link
Owner

@bdarcus bdarcus commented Jul 29, 2023

#121 is driving me crazy, but I've at least narrowed the problem to the suppress_component method, and specifically to the logic for editors.


I think fixing this may require reverting an earlier refactor.

The reference.author() method should only return an author, and the substitution should happen somewhere else, and explicitly.

It could be I move get_author_substitute to InputReference, which seems the natural place to put it. But that likely means it would be hard-coded?

Or maybe not; could return a hash table of the substitution options, and let the processor select the correct one based on the style config?

* MonographComponent -> CollectionComponent
* get the parent.editor also
* adjust other code

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
processor/src/lib.rs Outdated Show resolved Hide resolved
Closes: #121

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
@bdarcus bdarcus marked this pull request as ready for review July 31, 2023 20:48
@bdarcus bdarcus merged commit 90ba768 into main Jul 31, 2023
6 checks passed
@bdarcus bdarcus deleted the editor-fix branch July 31, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant