We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43cd259 commit e5050acCopy full SHA for e5050ac
1 file changed
macros/utils/agate/row_value.sql
@@ -10,7 +10,7 @@
10
{% set pairs = [] %}
11
{% for col_name in col_names %}
12
{% set value = row.get(col_name) | string %}
13
- {% do pairs.append('"' ~ (col_name | lower) ~ '":' ~ '"' ~ (value | replace('"', '\\\"') ) ~ '"') %}
+ {% do pairs.append('"' ~ (col_name | lower) ~ '":' ~ '"' ~ (value | replace('"', '\\\"') | replace('\n', '\\n') ) ~ '"') %}
14
{% endfor %}
15
{% set joined_pairs = '{' ~ (pairs | join(',')) ~ '}' %}
16
{% do query_result.append(joined_pairs) %}
0 commit comments