Skip to contentSkip to conversation

properly render backslash characters

PATCH New Robert P. J. Day 1 participant 1 message Mar 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 properly render backslash characters

Currently, with only a single backslash character in the docs, no character shows up. This was tested by building the sphinx docs and verifying the backslash showing up.

---

doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +4 -4
index 7ea68ade..2e3f706c 100644
@@ -103,15 +103,15 @@ Line Joining
 
 Outside of :ref:`functions <bitbake-user-manual/bitbake-user-manual-metadata:functions>`,
 BitBake joins any line ending in
-a backslash character ("\") with the following line before parsing
-statements. The most common use for the "\" character is to split
+a backslash character ("\\") with the following line before parsing
+statements. The most common use for the "\\" character is to split
 variable assignments over multiple lines, as in the following example: ::
 
    FOO = "bar \
           baz \
           qaz"
 
-Both the "\" character and the newline
+Both the "\\" character and the newline
 character that follow it are removed when joining lines. Thus, no
 newline characters end up in the value of ``FOO``.
 
@@ -124,7 +124,7 @@ Consider this additional example where the two assignments both assign
 
 .. note::
 
-   BitBake does not interpret escape sequences like "\n" in variable
+   BitBake does not interpret escape sequences like "\\n" in variable
    values. For these to have an effect, the value must be passed to some
    utility that interprets escape sequences, such as
    ``printf`` or ``echo -n``.
Signature · 6 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================