This is an automated email from the ASF dual-hosted git repository.
wanghailin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 2811bfe18d [Doc][Improve] Intro the multi-line text feature in
document (#6713)
2811bfe18d is described below
commit 2811bfe18d9d7bc06aab2567e61d387221163a51
Author: 狂野之驴 <[email protected]>
AuthorDate: Tue Apr 16 21:24:53 2024 +0800
[Doc][Improve] Intro the multi-line text feature in document (#6713)
---
docs/en/concept/config.md | 13 +++++++++++++
docs/zh/concept/config.md | 13 +++++++++++++
2 files changed, 26 insertions(+)
diff --git a/docs/en/concept/config.md b/docs/en/concept/config.md
index 1c422dd55e..c5f549ef98 100644
--- a/docs/en/concept/config.md
+++ b/docs/en/concept/config.md
@@ -64,6 +64,19 @@ sink {
}
```
+#### multi-line support
+
+In `hocon`, multiline strings are supported, which allows you to include
extended passages of text without worrying about newline characters or special
formatting. This is achieved by enclosing the text within triple quotes
**`"""`** . For example:
+
+```
+var = """
+Apache SeaTunnel is a
+next-generation high-performance,
+distributed, massive data integration tool.
+"""
+sql = """ select * from "table" """
+```
+
### json
```json
diff --git a/docs/zh/concept/config.md b/docs/zh/concept/config.md
index c00425ca03..0fab8477b2 100644
--- a/docs/zh/concept/config.md
+++ b/docs/zh/concept/config.md
@@ -68,6 +68,19 @@ sink {
}
```
+#### 多行文本支持
+
+`hocon`支持多行字符串,这样就可以包含较长的文本段落,而不必担心换行符或特殊格式。这可以通过将文本括在三层引号 **`"""`** 中来实现。例如:
+
+```
+var = """
+Apache SeaTunnel is a
+next-generation high-performance,
+distributed, massive data integration tool.
+"""
+sql = """ select * from "table" """
+```
+
### json
```json