Skip to content

Commit 6014990

Browse files
committed
Bogdan likes this
It is nice
1 parent bc32526 commit 6014990

File tree

1 file changed

+7
-1
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function

1 file changed

+7
-1
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/DocsV3Support.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)