From cf2c2ccf6fd68140c7b17296b1aeb3a43848fbb2 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Sun, 18 Apr 2021 07:44:38 +0800 Subject: [PATCH] Fix changelog misformat (#9817) --- tools/news/template.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/news/template.rst b/tools/news/template.rst index 70d6ab75d..cff0db4f6 100644 --- a/tools/news/template.rst +++ b/tools/news/template.rst @@ -1,6 +1,7 @@ -{{ top_line -}} - -{%- for section in sections %} +{% set underline = "=" %} +{{ top_line }} +{{ underline * top_line|length }} +{% for section in sections %} {% set underline = "-" %} {% if section %} {{ section }}