From d0a1cedee24a796ba9c580d02292628e05329e66 Mon Sep 17 00:00:00 2001 From: Winfidonarleyan Date: Tue, 9 Jul 2024 05:01:25 +0700 Subject: [PATCH] fix(Apps/Fmt): correct fmt replace script --- apps/Fmt/FormatReplace.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/Fmt/FormatReplace.py b/apps/Fmt/FormatReplace.py index 62bc4faef7..e1d2e5f2a6 100644 --- a/apps/Fmt/FormatReplace.py +++ b/apps/Fmt/FormatReplace.py @@ -170,11 +170,11 @@ def handleCleanup(line): line = line.replace("%02X", "{:02X}"); line = line.replace("%08X", "{:08X}"); line = line.replace("%f", "{}"); - line = line.replace("%.1f", "{0:.1f}"); - line = line.replace("%.2f", "{0:.2f}"); - line = line.replace("%.3f", "{0:.3f}"); - line = line.replace("%.4f", "{0:.4f}"); - line = line.replace("%.5f", "{0:.5f}"); + line = line.replace("%.1f", "{:.1f}"); + line = line.replace("%.2f", "{:.2f}"); + line = line.replace("%.3f", "{:.3f}"); + line = line.replace("%.4f", "{:.4f}"); + line = line.replace("%.5f", "{:.5f}"); line = line.replace("%3.1f", "{:3.1f}"); line = line.replace("%%", "%"); line = line.replace(".c_str()", ""); @@ -236,4 +236,4 @@ def handlefile(name): if '.cpp' in i.name: handlefile(fname) if '.h' in i.name: - handlefile(fname) + handlefile(fname) \ No newline at end of file