From b153f9be39d30a772a130b39560a01b9e29ad3dd Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Thu, 8 Nov 2018 16:28:40 -0600 Subject: [PATCH] docs: use hcl heredoc syntax for multi line strings in sentinel examples (#4930) --- .../docs/guides/sentinel.html.markdown.erb | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/website/source/docs/guides/sentinel.html.markdown.erb b/website/source/docs/guides/sentinel.html.markdown.erb index 5699a9b060..241860e36e 100644 --- a/website/source/docs/guides/sentinel.html.markdown.erb +++ b/website/source/docs/guides/sentinel.html.markdown.erb @@ -27,9 +27,11 @@ Here's an example: ```text sentinel { - code = "import \"strings\" - main = rule { strings.has_suffix(value,\"foo\") }" - enforcementlevel = "soft-mandatory" + code = < 8 and time.hour < 17 }" + code = < 8 and time.hour < 17 } +EOF } } ```