aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/support-multiline-fstring.md
blob: 296a04e34303633663b484abd2eab176d73671b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Added support for multiline fstrings

Added support for multiline f-strings which use the same syntax as f-strings
for string substition.

```meson
x = 'hello'
y = 'world'

msg = f'''Sending a message...
"@x@ @y@"
'''
```

which produces:

```
Sending a message....

"hello world"

```