aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/script6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/script b/plugins/script
index 2e8fb0d..5300639 100755
--- a/plugins/script
+++ b/plugins/script
@@ -1805,9 +1805,9 @@ string_to_str (const struct item_string *string, struct buffer *buf)
for (size_t i = 0; i < string->len; i++)
{
char c = string->value[i];
- if (c == '\n') buffer_append (buf, "\\\n", 2);
- else if (c == '\r') buffer_append (buf, "\\\r", 2);
- else if (c == '\t') buffer_append (buf, "\\\t", 2);
+ if (c == '\n') buffer_append (buf, "\\n", 2);
+ else if (c == '\r') buffer_append (buf, "\\r", 2);
+ else if (c == '\t') buffer_append (buf, "\\t", 2);
else if (!isprint (c))
{
char tmp[8];