]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/markdown.qh
take3: format 903 files
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / markdown.qh
index a3bffeaaef3b223e96273b4e81959c7306083c85..ef0c680d04276e0b574300f3953be21942be691a 100644 (file)
@@ -14,7 +14,7 @@ string markdown(string s)
        FOREACH_CHAR(s, true, {
                switch (it) {
                        default:
-                               for (; spaces > 0; --spaces) {
+                               for ( ; spaces > 0; --spaces) {
                                        buf = strcat(buf, " ");
                                }
                                buf = strcat(buf, chr2str(it));
@@ -44,7 +44,8 @@ string markdown(string s)
 
 TEST(Markdown, LineWrap)
 {
-       #define X(expect, in) MACRO_BEGIN \
+#define X(expect, in) \
+       MACRO_BEGIN \
                string out = markdown(in); \
                EXPECT_TRUE(expect == out); \
                LOG_INFO(expect); \
@@ -62,5 +63,5 @@ TEST(Markdown, LineWrap)
        // paragraph
        X("lorem\n\nipsum", "lorem\n\nipsum");
        SUCCEED();
-       #undef X
+#undef X
 }