# HG changeset patch # User wenzelm # Date 1726144924 -7200 # Node ID 320bcbf34849433a1a506150c45213d131c695ff # Parent b71a040ab128aa5be8437a41e46602b876d2fdbd tuned: trim message before formatting; diff -r b71a040ab128 -r 320bcbf34849 src/Pure/Build/build_job.scala --- a/src/Pure/Build/build_job.scala Thu Sep 12 14:38:19 2024 +0200 +++ b/src/Pure/Build/build_job.scala Thu Sep 12 14:42:04 2024 +0200 @@ -233,8 +233,7 @@ } val errors = for (err <- errs) yield { - val prt = Protocol_Message.expose_no_reports(err) - Pretty.string_of(prt, metric = Symbol.Metric) + Pretty.string_of(err, metric = Symbol.Metric, pure = true) } (rc, errors) } diff -r b71a040ab128 -r 320bcbf34849 src/Pure/PIDE/protocol.scala --- a/src/Pure/PIDE/protocol.scala Thu Sep 12 14:38:19 2024 +0200 +++ b/src/Pure/PIDE/protocol.scala Thu Sep 12 14:42:04 2024 +0200 @@ -189,8 +189,8 @@ val text1 = if (heading) "\n" + message_heading(elem, pos) + ":\n" else "" val body = - Pretty.string_of(Protocol_Message.expose_no_reports(List(elem)), - margin = margin, breakgain = breakgain, metric = metric) + Pretty.string_of(List(elem), margin = margin, breakgain = breakgain, + metric = metric, pure = true) val text2 = if (is_warning(elem) || is_legacy(elem)) Output.warning_prefix(body) diff -r b71a040ab128 -r 320bcbf34849 src/Pure/PIDE/protocol_message.scala --- a/src/Pure/PIDE/protocol_message.scala Thu Sep 12 14:38:19 2024 +0200 +++ b/src/Pure/PIDE/protocol_message.scala Thu Sep 12 14:42:04 2024 +0200 @@ -43,9 +43,6 @@ def clean_reports(body: XML.Body): XML.Body = XML.filter_elements(body, remove = any_report_elements) - def expose_no_reports(body: XML.Body): XML.Body = - XML.filter_elements(body, expose = no_report_elements) - def reports(props: Properties.T, body: XML.Body): List[XML.Elem] = body flatMap { case XML.Wrapped_Elem(Markup(Markup.REPORT, ps), body, ts) =>