Skip to content

Commit 73ce1a2

Browse files
committed
UPDATED: Apply astyle to source
1 parent db4b1d9 commit 73ce1a2

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

Sources/libMultiMarkdown/html.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,7 @@ void mmd_export_token_html_raw(DString * out, const char * source, token * t, sc
20522052
if (t == NULL) {
20532053
return;
20542054
}
2055+
20552056
char * temp;
20562057

20572058
switch (t->type) {
@@ -2110,18 +2111,20 @@ void mmd_export_token_html_raw(DString * out, const char * source, token * t, sc
21102111
print_token(t);
21112112

21122113
temp = NULL;
2114+
21132115
if (t->next) {
21142116
temp = (char *) &source[t->next->start];
21152117
}
21162118

21172119
source = (char *) &source[t->start + t->len];
21182120

21192121
while (char_is_whitespace(*source) &&
2120-
((temp == NULL) ||
2121-
(source < temp))) {
2122+
((temp == NULL) ||
2123+
(source < temp))) {
21222124
print_char(*source);
21232125
source++;
21242126
}
2127+
21252128
break;
21262129

21272130
case MATH_BRACKET_OPEN:

Sources/libMultiMarkdown/latex.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,7 @@ void mmd_export_token_latex_raw(DString * out, const char * source, token * t, s
19861986
}
19871987

19881988
char * temp;
1989-
1989+
19901990
switch (t->type) {
19911991
case ESCAPED_CHARACTER:
19921992
print_const("\\");
@@ -2003,18 +2003,20 @@ void mmd_export_token_latex_raw(DString * out, const char * source, token * t, s
20032003
print_token(t);
20042004

20052005
temp = NULL;
2006+
20062007
if (t->next) {
20072008
temp = (char *) &source[t->next->start];
20082009
}
20092010

20102011
source = (char *) &source[t->start + t->len];
20112012

20122013
while (char_is_whitespace(*source) &&
2013-
((temp == NULL) ||
2014-
(source < temp))) {
2014+
((temp == NULL) ||
2015+
(source < temp))) {
20152016
print_char(*source);
20162017
source++;
20172018
}
2019+
20182020
break;
20192021

20202022
case SUBSCRIPT:

Sources/libMultiMarkdown/opendocument-content.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,20 +333,22 @@ void mmd_export_token_opendocument_raw(DString * out, const char * source, token
333333
print_token(t);
334334

335335
temp = NULL;
336+
336337
if (t->next) {
337338
temp = (char *) &source[t->next->start];
338339
}
339340

340341
source = (char *) &source[t->start + t->len];
341342

342343
while (char_is_whitespace(*source) &&
343-
((temp == NULL) ||
344-
(source < temp))) {
345-
print_char(*source);
346-
source++;
347-
}
344+
((temp == NULL) ||
345+
(source < temp))) {
346+
print_char(*source);
347+
source++;
348+
}
349+
348350
break;
349-
351+
350352
case MATH_BRACKET_OPEN:
351353
case MATH_BRACKET_CLOSE:
352354
case MATH_PAREN_OPEN:

0 commit comments

Comments
 (0)