Merge branch 'quoting' of git://git.hohndel.org/subsurface

Pull xml quoting fix from Dirk Hohndel.

* 'quoting' of git://git.hohndel.org/subsurface:
  Add single and double quotes to escaped characters in XML output
This commit is contained in:
Linus Torvalds 2012-08-27 13:07:47 -07:00
commit 0640af873b

View file

@ -97,6 +97,12 @@ static void quote(FILE *f, const char *text)
case '&':
escape = "&";
break;
case '\'':
escape = "'";
break;
case '\"':
escape = """;
break;
}
fwrite(text, (p - text - 1), 1, f);
if (!escape)