[glib] docs: Escape some backslashes for markdown



commit c7dc81ce78ea5933260400a4c1d85c3d3abe6aef
Author: Volker Sobek <reklov live com>
Date:   Sun Mar 30 16:40:46 2014 +0200

    docs: Escape some backslashes for markdown
    
    These no longer showed up correctly in the documentation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727346

 glib/gfileutils.c |    2 +-
 glib/gkeyfile.c   |    2 +-
 glib/gregex.c     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/gfileutils.c b/glib/gfileutils.c
index a2951cc..2659522 100644
--- a/glib/gfileutils.c
+++ b/glib/gfileutils.c
@@ -2114,7 +2114,7 @@ g_file_read_link (const gchar  *filename,
  * an absolute file name one that either begins with a directory
  * separator such as "\Users\tml" or begins with the root on a drive,
  * for example "C:\Windows". The first case also includes UNC paths
- * such as "\\myserver\docs\foo". In all cases, either slashes or
+ * such as "\\\\myserver\docs\foo". In all cases, either slashes or
  * backslashes are accepted.
  *
  * Note that a file name relative to the current drive root does not
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c
index 4a69642..8a56c76 100644
--- a/glib/gkeyfile.c
+++ b/glib/gkeyfile.c
@@ -119,7 +119,7 @@
  * are optional.
  * Space before and after the '=' character are ignored. Newline, tab,
  * carriage return and backslash characters in value are escaped as \n,
- * \t, \r, and \\, respectively. To preserve leading spaces in values,
+ * \t, \r, and \\\\, respectively. To preserve leading spaces in values,
  * these can also be escaped as \s.
  *
  * Key files can store strings (possibly with localized variants), integers,
diff --git a/glib/gregex.c b/glib/gregex.c
index a9f6814..225b896 100644
--- a/glib/gregex.c
+++ b/glib/gregex.c
@@ -2765,7 +2765,7 @@ interpolation_list_needs_match (GList *list)
  * to the captured subexpression with the given name. '\0' refers
  * to the complete match, but '\0' followed by a number is the octal
  * representation of a character. To include a literal '\' in the
- * replacement, write '\\'.
+ * replacement, write '\\\\'.
  *
  * There are also escapes that changes the case of the following text:
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]