# HG changeset patch # User Gregory Szorc # Date 2017-10-02 18:09:52 # Node ID 88e83a618de0f326bcc6a5d4ab119c97e8b67a02 # Parent b90e8da190da05f5e36d0ea7104330863c66053a cext: put case statements on separate line This seems to be the prevailing style, even though it is a bit more verbose for very simple switch statements. Differential Revision: https://phab.mercurial-scm.org/D909 diff --git a/mercurial/cext/charencode.c b/mercurial/cext/charencode.c --- a/mercurial/cext/charencode.c +++ b/mercurial/cext/charencode.c @@ -319,13 +319,20 @@ static Py_ssize_t jsonescapelen(const ch static char jsonescapechar2(char c) { switch (c) { - case '\b': return 'b'; - case '\t': return 't'; - case '\n': return 'n'; - case '\f': return 'f'; - case '\r': return 'r'; - case '"': return '"'; - case '\\': return '\\'; + case '\b': + return 'b'; + case '\t': + return 't'; + case '\n': + return 'n'; + case '\f': + return 'f'; + case '\r': + return 'r'; + case '"': + return '"'; + case '\\': + return '\\'; } return '\0'; /* should not happen */ }