Skip to content

Commit

Permalink
UPDATED: Apply astyle to source
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher committed Feb 4, 2018
1 parent db4b1d9 commit 73ce1a2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
7 changes: 5 additions & 2 deletions Sources/libMultiMarkdown/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -2110,18 +2111,20 @@ 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];
}

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:
Expand Down
8 changes: 5 additions & 3 deletions Sources/libMultiMarkdown/latex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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("\\");
Expand All @@ -2003,18 +2003,20 @@ 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];
}

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:
Expand Down
14 changes: 8 additions & 6 deletions Sources/libMultiMarkdown/opendocument-content.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,20 +333,22 @@ 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];
}

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:
Expand Down

0 comments on commit 73ce1a2

Please sign in to comment.