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

Fix the include preprocessor creating nested diagrams #314

Merged
merged 3 commits into from
May 13, 2020

Conversation

neumantm
Copy link
Contributor

@neumantm neumantm commented May 9, 2020

Remove the @start... and @end... tags from an included file before adding it to the parent.

The code removes the first line, which starts (ignoring whitespaces) with @start.
Then it removes the last line, which starts (ignoring whitespaces) with @end.

Both operations remove exactly one new-line (either single \n or \r\n), so that there is no empty line but the line before and the line after don't get merged.

Fixes #298

@qjebbs qjebbs merged commit 55c147c into qjebbs:master May 13, 2020
@qjebbs
Copy link
Owner

qjebbs commented May 13, 2020

Thank you!

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.

Include on main document only previews included file 2.13.6 w/ local PlantUML Server
2 participants