Skip to content

Commit 2811bfe

Browse files
authored
[Doc][Improve] Intro the multi-line text feature in document (#6713)
1 parent b9903a0 commit 2811bfe

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Diff for: docs/en/concept/config.md

+13
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ sink {
6464
}
6565
```
6666

67+
#### multi-line support
68+
69+
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:
70+
71+
```
72+
var = """
73+
Apache SeaTunnel is a
74+
next-generation high-performance,
75+
distributed, massive data integration tool.
76+
"""
77+
sql = """ select * from "table" """
78+
```
79+
6780
### json
6881

6982
```json

Diff for: docs/zh/concept/config.md

+13
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,19 @@ sink {
6868
}
6969
```
7070

71+
#### 多行文本支持
72+
73+
`hocon`支持多行字符串,这样就可以包含较长的文本段落,而不必担心换行符或特殊格式。这可以通过将文本括在三层引号 **`"""`** 中来实现。例如:
74+
75+
```
76+
var = """
77+
Apache SeaTunnel is a
78+
next-generation high-performance,
79+
distributed, massive data integration tool.
80+
"""
81+
sql = """ select * from "table" """
82+
```
83+
7184
### json
7285

7386
```json

0 commit comments

Comments
 (0)