From 3b7dd205a525589a896f9ae9cac7a763cdfae7fe Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 22 Apr 2025 17:40:26 +0900 Subject: [PATCH] Remove extra empty expressions Only `class_table` values are not quoted and need to terminate %-= literal. --- template/unicode_norm_gen.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/unicode_norm_gen.tmpl b/template/unicode_norm_gen.tmpl index acf565f657..c115e6eef9 100644 --- a/template/unicode_norm_gen.tmpl +++ b/template/unicode_norm_gen.tmpl @@ -213,19 +213,19 @@ module UnicodeNormalize # :nodoc: DECOMPOSITION_TABLE = { % decomposition_table.each do |key, value| - "<%=key.to_UTF8%>"=>"<%=value.to_UTF8%>"<%=%>, + "<%=key.to_UTF8%>"=>"<%=value.to_UTF8%>", % end }.freeze KOMPATIBLE_TABLE = { % kompatible_table.each do |key, value| - "<%=key.to_UTF8%>"=>"<%=value.to_UTF8%>"<%=%>, + "<%=key.to_UTF8%>"=>"<%=value.to_UTF8%>", % end }.freeze COMPOSITION_TABLE = { % composition_table.each do |key, value| - "<%=key.to_UTF8%>"=>"<%=value.to_UTF8%>"<%=%>, + "<%=key.to_UTF8%>"=>"<%=value.to_UTF8%>", % end }.freeze end