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

Ensure that content model and substitutions can be just copied from a… #536

Conversation

robertpanzer
Copy link
Member

…n existing node.

This PR goes for the part of #513 that says that when creating a new node the content model and the substitutions cannot be copied from an existing node.
As JRuby returns the symbols used by Asciidoctor as plain strings this PR converts the options subs and content_model explicitly back to Ruby symbols when creating a new node.
This is not the nicest solution as it requires knowledge about what Asciidoctor does internally but I have no other solution for that problem yet.

@robertpanzer robertpanzer merged commit 7a3516e into asciidoctor:asciidoctorj-1.6.0 Dec 25, 2016
@robertpanzer robertpanzer deleted the duplicate_content_model_and_subs branch December 25, 2016 17:43
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