]> granicus.if.org Git - multimarkdown/commitdiff
UPDATED: Apply astyle to source
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 4 Feb 2018 20:54:17 +0000 (15:54 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 4 Feb 2018 20:54:17 +0000 (15:54 -0500)
Sources/libMultiMarkdown/html.c
Sources/libMultiMarkdown/latex.c
Sources/libMultiMarkdown/opendocument-content.c

index 5b9fafb232a4b861ef37a271ca11eebdcf947f89..edbee6d87ff306e489f55d99c83f7d57ef0b6dbd 100644 (file)
@@ -2052,6 +2052,7 @@ void mmd_export_token_html_raw(DString * out, const char * source, token * t, sc
        if (t == NULL) {
                return;
        }
+
        char * temp;
 
        switch (t->type) {
@@ -2110,6 +2111,7 @@ void mmd_export_token_html_raw(DString * out, const char * source, token * t, sc
                        print_token(t);
 
                        temp = NULL;
+
                        if (t->next) {
                                temp = (char *) &source[t->next->start];
                        }
@@ -2117,11 +2119,12 @@ void mmd_export_token_html_raw(DString * out, const char * source, token * t, sc
                        source = (char *) &source[t->start + t->len];
 
                        while (char_is_whitespace(*source) &&
-                                  ((temp == NULL) ||
-                                       (source < temp))) {
+                                       ((temp == NULL) ||
+                                        (source < temp))) {
                                print_char(*source);
                                source++;
                        }
+
                        break;
 
                case MATH_BRACKET_OPEN:
index cbd6e206c01f38c8f98c2ecdb730c1cd882c3824..3667e139d458aa1df7058fc79942d00bed642775 100644 (file)
@@ -1986,7 +1986,7 @@ void mmd_export_token_latex_raw(DString * out, const char * source, token * t, s
        }
 
        char * temp;
-       
+
        switch (t->type) {
                case ESCAPED_CHARACTER:
                        print_const("\\");
@@ -2003,6 +2003,7 @@ void mmd_export_token_latex_raw(DString * out, const char * source, token * t, s
                        print_token(t);
 
                        temp = NULL;
+
                        if (t->next) {
                                temp = (char *) &source[t->next->start];
                        }
@@ -2010,11 +2011,12 @@ void mmd_export_token_latex_raw(DString * out, const char * source, token * t, s
                        source = (char *) &source[t->start + t->len];
 
                        while (char_is_whitespace(*source) &&
-                                  ((temp == NULL) ||
-                                       (source < temp))) {
+                                       ((temp == NULL) ||
+                                        (source < temp))) {
                                print_char(*source);
                                source++;
                        }
+
                        break;
 
                case SUBSCRIPT:
index 9f21a5ceddc486410fbae227eff74a16df27fb97..9a2dfe6a09493a7eadb0895c9340c9e1258677aa 100644 (file)
@@ -333,6 +333,7 @@ void mmd_export_token_opendocument_raw(DString * out, const char * source, token
                        print_token(t);
 
                        temp = NULL;
+
                        if (t->next) {
                                temp = (char *) &source[t->next->start];
                        }
@@ -340,13 +341,14 @@ void mmd_export_token_opendocument_raw(DString * out, const char * source, token
                        source = (char *) &source[t->start + t->len];
 
                        while (char_is_whitespace(*source) &&
-                                  ((temp == NULL) ||
-                                       (source < temp))) {
-                                          print_char(*source);
-                                          source++;
-                                  }
+                                       ((temp == NULL) ||
+                                        (source < temp))) {
+                               print_char(*source);
+                               source++;
+                       }
+
                        break;
-                       
+
                case MATH_BRACKET_OPEN:
                case MATH_BRACKET_CLOSE:
                case MATH_PAREN_OPEN: