This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 1f0681ffa008 camel-core - simple languge improve docs
1f0681ffa008 is described below

commit 1f0681ffa008ec9865d58369898ef782302a78ed
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Jan 25 15:13:53 2026 +0100

    camel-core - simple languge improve docs
---
 .../src/main/docs/modules/languages/pages/simple-language.adoc      | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/core/camel-core-languages/src/main/docs/modules/languages/pages/simple-language.adoc
 
b/core/camel-core-languages/src/main/docs/modules/languages/pages/simple-language.adoc
index f650e8ec849b..38cdd8784cce 100644
--- 
a/core/camel-core-languages/src/main/docs/modules/languages/pages/simple-language.adoc
+++ 
b/core/camel-core-languages/src/main/docs/modules/languages/pages/simple-language.adoc
@@ -489,6 +489,12 @@ You can use the `normalizeWhitespace` function to _clean 
up_ a value by removing
 there are exactly only 1 whitespace between words. And as well trimming the 
value for empty whitespace
 in the beginning and end. Suppose the message body is a String value with `"   
Hello  big   World      "`, then `${normalizeWhitespace()}` will return `Hello 
big World`.
 
+The `pad` function returns a copy of the string with extra padding, if 
necessary, so that its total number of characters is at least the absolute 
value of the width parameter.
+If width is a positive number, then the string is padded to the right; if 
negative, it is padded to the left.
+The optional separator specifies the padding character(s) to use. If not 
specified, it defaults to the space character.
+If the message body contains `foo` then `${pad(5)}` return `"foo  "` and 
`${pad(-5)}` returns `"  foo"`, and `${pad(-5,'@')}` returns `@@foo`.
+
+
 
 === XML & JSon Functions
 

Reply via email to