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 multiline parsing #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gahujipo
Copy link
Contributor

@gahujipo gahujipo commented Aug 5, 2020

Nagios allows to have values defined in multiple lines by doing something like this

define host {
	host_name    Host1
	contact_groups 	ContactGroup1, \
			ContactGroup2, \
			ContactGroup3
	contacts	Contact1, \
			Contact2
}

Without this change, the parsing does not work and looks like this:
image

After the change, the result is this:
image

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