From 275330009a397aee2b4d5c8cbb8cd02042362a1d Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 18 May 2024 22:53:39 +0200 Subject: [PATCH] docs: Fix g_strescape rendering escape sequences In the gi-docgen Markdown flavour, \' will just prevent the apostrophe from turning into a curly single quote. --- glib/gstrfuncs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 3688bea49..eea2fae26 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -2188,11 +2188,11 @@ out: * @source: a string to escape * @exceptions: (nullable): a string of characters not to escape in @source * - * Escapes the special characters '\b', '\f', '\n', '\r', '\t', '\v', '\' - * and '"' in the string @source by inserting a '\' before + * Escapes the special characters `\b`, `\f`, `\n`, `\r`, `\t`, `\v`, `\` + * and `"` in the string @source by inserting a `\` before * them. Additionally all characters in the range 0x01-0x1F (everything * below SPACE) and in the range 0x7F-0xFF (all non-ASCII chars) are - * replaced with a '\' followed by their octal representation. + * replaced with a `\` followed by their octal representation. * Characters supplied in @exceptions are not escaped. * * [func@GLib.strcompress] does the reverse conversion.