diff --git a/src/common/zeroconf/connection_zeroconf.py b/src/common/zeroconf/connection_zeroconf.py
index 1e48c962abca74f2e13eb6ce9f1129877fafd838..c44787ff2d99ec118a3d29be9a6fca035b155ca9 100644
--- a/src/common/zeroconf/connection_zeroconf.py
+++ b/src/common/zeroconf/connection_zeroconf.py
@@ -366,8 +366,8 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
 	original_message=None, delayed=None):
 		fjid = jid
 
-		 if msg and not xhtml and gajim.config.get(
-		 'rst_formatting_outgoing_messages'):
+		if msg and not xhtml and gajim.config.get(
+		'rst_formatting_outgoing_messages'):
 			from common.rst_xhtml_generator import create_xhtml
 			xhtml = create_xhtml(msg)
 		if not self.connection: