Minor style tweaks.

This commit is contained in:
Michael Drake 2012-08-19 11:39:00 +01:00
parent 1c40d8a58c
commit 081976105a
2 changed files with 8 additions and 8 deletions

View File

@ -760,8 +760,8 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
done = true;
}
}
else if (mouse & BROWSER_MOUSE_PRESS_1)
} else if (mouse & BROWSER_MOUSE_PRESS_1)
selection_clear(&html->sel, true);
}
@ -778,10 +778,10 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
CONTENT_MSG_DRAGSAVE,
msg_data);
} else {
if (drag_candidate == NULL)
if (drag_candidate == NULL) {
browser_window_page_drag_start(
bw, x, y);
else {
} else {
html_box_drag_start(
drag_candidate,
x, y);
@ -798,10 +798,10 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
CONTENT_MSG_DRAGSAVE,
msg_data);
} else {
if (drag_candidate == NULL)
if (drag_candidate == NULL) {
browser_window_page_drag_start(
bw, x, y);
else {
} else {
html_box_drag_start(
drag_candidate,
x, y);

View File

@ -521,8 +521,8 @@ void textplain_reformat(struct content *c, int width, int height)
/* break at last space in line */
i = space;
line[line_count-1].length = (i + 1) - line_start;
}
else
} else
line[line_count-1].length = i - line_start;
}
line[line_count++].start = line_start = i + 1;