works correctly inside macro arguments.
git-svn-id: svn://svn.tartarus.org/sgt/halibut@6658
cda61777-01e9-0310-a592-
d414129be87e
*/
rdaddc(&out, '\\');
rdaddc(&out, '&');
- } else if (*q == '\\' || *q == '`' || *q == ' ') {
- /*
- * Quote backslashes, backticks and nonbreakable
- * spaces always.
- */
+ } else if (*q == '`' || *q == ' ') {
+ /* Quote backticks and nonbreakable spaces always. */
rdaddc(&out, '\\');
+ } else if (*q == '\\') {
+ /* Turn backslashes into \e. */
+ rdaddsc(&out, "\\e");
+ continue;
} else if (*q == '-') {
- /*
- * Turn nonbreakable hyphens into \(hy.
- */
+ /* Turn nonbreakable hyphens into \(hy. */
rdaddsc(&out, "\\(hy");
continue;
} else if (*q == '"' && (quote_props & QUOTE_QUOTES)) {