Fix issue: unprintable character is rendered when handling comments in j2 (#16287)

Use "{#-" and "-#}" to mark comments in jinja template

Signed-off-by: Stephen Sun <stephens@nvidia.com>
This commit is contained in:
Stephen Sun 2023-08-28 20:03:39 +08:00 committed by GitHub
parent 65b0011866
commit be8843b166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{# {#-
Copyright (c) 2020-2023 NVIDIA CORPORATION & AFFILIATES. Copyright (c) 2020-2023 NVIDIA CORPORATION & AFFILIATES.
Apache-2.0 Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
@ -10,7 +10,7 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
#} -#}
#!/bin/bash #!/bin/bash
declare -r SCRIPT_NAME="$(basename "$0")" declare -r SCRIPT_NAME="$(basename "$0")"