From 18cd2a8c4d6d154d22da17388723eeb948535442 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Tue, 17 Jun 2025 03:17:37 -0400 Subject: [PATCH] fix(parser/elf): output format --- internal/parser/elf/parser.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/parser/elf/parser.go b/internal/parser/elf/parser.go index 2d2eaea..835b57c 100644 --- a/internal/parser/elf/parser.go +++ b/internal/parser/elf/parser.go @@ -48,7 +48,7 @@ func (p *Elf) parse(executorResult stage.ExecutorResult, conf Conf) stage.Parser // ":\n below reaches a parentheses depths of :\n" comment += fmt.Sprintf( "%s:\n%s below reaches a parentheses depths of %d:\n"+ - "```%s\n```\n", + "%s\n", caseObj.Binders, caseObj.Context, caseObj.Depths, @@ -59,7 +59,7 @@ func (p *Elf) parse(executorResult stage.ExecutorResult, conf Conf) stage.Parser comment += fmt.Sprintf( "%s:\n%s below excceeds a code length "+ "upper bound with %d (weighed: %f):\n"+ - "```%s\n```\n", + "%s\n", caseObj.Binders, caseObj.Context, caseObj.Plain, @@ -69,7 +69,7 @@ func (p *Elf) parse(executorResult stage.ExecutorResult, conf Conf) stage.Parser case "OverArity": // ":\n below hits :\n" comment += fmt.Sprintf( - "%s:\n%s below hits %s:\n```%s\n```\n", + "%s:\n%s below hits %s:\n%s\n", caseObj.Binders, caseObj.Context, caseObj.Detail, @@ -86,8 +86,8 @@ func (p *Elf) parse(executorResult stage.ExecutorResult, conf Conf) stage.Parser // "The code below has a similarity rate of :\n- :\n\t\n- :\n\t" comment += fmt.Sprintf( "The code below has a similarity rate of %f:\n"+ - "- %s:\n```%s\n```\n"+ - "- %s:\n```%s\n```\n", + "- %s:\n%s\n"+ + "- %s:\n%s\n", caseObj.SimilarityRate, context0, code0,