diff --git a/src/chars.c b/src/chars.c
index 7087eacefccae85660f3e9a6e099ad943463d4ec..30b7d2f2d8398b13eeae9c9642acfc0408fdcce3 100644
--- a/src/chars.c
+++ b/src/chars.c
@@ -390,7 +390,7 @@ size_t move_mbleft(const char *buf, size_t pos)
 		before = pos - 2;
 	    else if ((signed char)*(--ptr) > -65)
 		before = pos - 3;
-	   else if ((signed char)*(--ptr) > -65)
+	    else if ((signed char)*(--ptr) > -65)
 		before = pos - 4;
 	    else
 		before = pos - 1;
diff --git a/src/files.c b/src/files.c
index a90c249829559521964ea5a318185415b61633d1..4a254cc6bc6bd8ea2670519772a80548cc9aa536 100644
--- a/src/files.c
+++ b/src/files.c
@@ -3075,7 +3075,7 @@ bool has_old_position(const char *file, ssize_t *line, ssize_t *column)
     free(fullpath);
 
     if (posptr == NULL)
-        return FALSE;
+	return FALSE;
 
     *line = posptr->lineno;
     *column = posptr->xno;
diff --git a/src/global.c b/src/global.c
index 79b1e8eadd85eff019f5beba79f9dfb7feab16fe..3836406e4afb2c5b7511ad54b05c4d8df7a8ef3c 100644
--- a/src/global.c
+++ b/src/global.c
@@ -728,7 +728,7 @@ void shortcut_init(void)
     add_to_funcs(do_research, MHELP, whereis_next_tag, "x", 0, VIEW);
 
     add_to_funcs(do_up_void, MHELP, prev_line_tag, "x", 0, VIEW);
-    add_to_funcs(do_down_void, MHELP, next_line_tag, "x" , 0, VIEW);
+    add_to_funcs(do_down_void, MHELP, next_line_tag, "x", 0, VIEW);
 #endif
 
     add_to_funcs(do_cut_text_void, MMAIN,
diff --git a/src/nano.c b/src/nano.c
index 15c55afcf54cf71896186033eefdb14eafbe2a35..b8365bb7eb9a36192ed28501885fa270fc162ba3 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1386,7 +1386,7 @@ void do_toggle(int flag)
 	case MORE_SPACE:
 	case NO_HELP:
 	    window_init();
-	    focusing=FALSE;
+	    focusing = FALSE;
 	    total_refresh();
 	    break;
 	case SUSPEND:
@@ -1620,7 +1620,7 @@ int do_input(bool allow_funcs)
     /* If the keystroke isn't a shortcut nor a toggle, it's a normal text
      * character: add the character to the input buffer -- or display a
      * warning when we're in view mode. */
-     if (input != ERR && !have_shortcut) {
+    if (input != ERR && !have_shortcut) {
 	if (ISSET(VIEW_MODE))
 	    print_view_warning();
 	else {
diff --git a/src/prompt.c b/src/prompt.c
index 4a2695412a86ddde7f416066d573bb80b154f8c6..62c0702adae093678829e5397ba32f2a965d1dbf 100644
--- a/src/prompt.c
+++ b/src/prompt.c
@@ -95,7 +95,7 @@ int do_statusbar_input(bool *ran_func, bool *finished)
 	    kbinput = (int *)nrealloc(kbinput, kbinput_len * sizeof(int));
 	    kbinput[kbinput_len - 1] = input;
 	}
-     }
+    }
 
     /* If we got a shortcut, or if there aren't any other keystrokes waiting
      * after the one we read in, we need to insert all the characters in the
diff --git a/src/utils.c b/src/utils.c
index da2504d6f0a04298cf5e56655ecfbb4ed6e988ef..e7f8340cf12e37887eb9c8cd43a02d3245ef6fec 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -60,30 +60,29 @@ void get_homedir(void)
 int digits(ssize_t n)
 {
     if (n < 100000) {
-        if (n < 1000) {
-            if (n < 100)
-                return 2;
-            else
-                return 3;
-        } else {
-            if (n < 10000)
-                return 4;
-            else
-                return 5;
-        }
+	if (n < 1000) {
+	    if (n < 100)
+		return 2;
+	    else
+		return 3;
+	} else {
+	    if (n < 10000)
+		return 4;
+	    else
+		return 5;
+	}
     } else {
-        if (n < 10000000) {
-            if (n < 1000000)
-                return 6;
-            else
-                return 7;
-        }
-        else {
-            if (n < 100000000)
-                return 8;
-            else
-                return 9;
-        }
+	if (n < 10000000) {
+	    if (n < 1000000)
+		return 6;
+	    else
+		return 7;
+	} else {
+	    if (n < 100000000)
+		return 8;
+	    else
+		return 9;
+	}
     }
 }
 #endif
@@ -117,7 +116,7 @@ bool parse_line_column(const char *str, ssize_t *line, ssize_t *column)
     const char *comma;
 
     while (*str == ' ')
-       str++;
+	str++;
 
     comma = strpbrk(str, "m,. /;");
 
diff --git a/src/winio.c b/src/winio.c
index fd5993c23fc1971a47aa72ae6ad34ccc96f1331e..5ece3f6184a39150091406ba4522d61dc5587a7a 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2014,7 +2014,7 @@ void titlebar(const char *path)
     prefixlen = strlenpt(prefix);
     if (prefixlen > 0)
 	prefixlen++;
-    pathlen= strlenpt(path);
+    pathlen = strlenpt(path);
     statelen = strlenpt(state) + 2;
     if (statelen > 2) {
 	pathlen++;