File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -678,7 +678,13 @@ private void renderFunctionNamedParams(EsqlFunctionRegistry.MapArgSignature mapA
678678 private static String makeAppliesToText (List <FunctionAppliesTo > functionAppliesTos , boolean preview , boolean oneLine ) {
679679 StringBuilder appliesToText = new StringBuilder ();
680680 if (false == functionAppliesTos .isEmpty ()) {
681- appliesToText .append (oneLine ? "{applies_to}`" : "```{applies_to}\n " );
681+ if (oneLine ) {
682+ appliesToText .append (" {applies_to}" );
683+ appliesToText .append ("`" );
684+ } else {
685+ appliesToText .append ("```" );
686+ appliesToText .append ("{applies_to}\n " );
687+ }
682688 StringBuilder stackEntries = new StringBuilder ();
683689
684690 for (FunctionAppliesTo appliesTo : functionAppliesTos ) {
You can’t perform that action at this time.
0 commit comments