summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2022-01-09 14:57:07 -0800
committerKevin McCarthy <kevin@8t8.us>2022-01-09 15:37:38 -0800
commit3ca96fab8513ebca3b927882eba16be7dd606d4b (patch)
tree0ba75ac58f5c815f1378206042a1cf640e616d43 /doc
parent2926cf8c3a096728d61b84c762fee3d7c9caa89d (diff)
Fix manual generation string_unescape() of backslash values.
Since the values are shown as if double-quoted, backslash also needs to be properly escaped.
Diffstat (limited to 'doc')
-rw-r--r--doc/makedoc.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/makedoc.pl b/doc/makedoc.pl
index 98d7515d..265d3a64 100644
--- a/doc/makedoc.pl
+++ b/doc/makedoc.pl
@@ -389,6 +389,7 @@ sub string_unescape($) {
sub string_escape($) {
my ($val) = @_;
+ $val =~ s/\\/\\\\/g;
$val =~ s/\r/\\r/g;
$val =~ s/\n/\\n/g;
$val =~ s/\t/\\t/g;