From 31cabe0fb98b4c75cb088761ba5ad53dbd2285ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Wed, 14 Sep 2016 18:51:11 +0200
Subject: Use spaces in snippets in the guide

---
 doc/src/guide/getting_started.asciidoc | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

(limited to 'doc/src/guide/getting_started.asciidoc')

diff --git a/doc/src/guide/getting_started.asciidoc b/doc/src/guide/getting_started.asciidoc
index be11e48..74164be 100644
--- a/doc/src/guide/getting_started.asciidoc
+++ b/doc/src/guide/getting_started.asciidoc
@@ -91,14 +91,14 @@ code to the `start/2` function to make it look like this:
 [source,erlang]
 ----
 start(_Type, _Args) ->
-	Dispatch = cowboy_router:compile([
-		{'_', [{"/", hello_handler, []}]}
-	]),
-	{ok, _} = cowboy:start_clear(my_http_listener, 100,
-		[{port, 8080}],
-		#{env => #{dispatch => Dispatch}}
-	),
-	hello_erlang_sup:start_link().
+    Dispatch = cowboy_router:compile([
+        {'_', [{"/", hello_handler, []}]}
+    ]),
+    {ok, _} = cowboy:start_clear(my_http_listener, 100,
+        [{port, 8080}],
+        #{env => #{dispatch => Dispatch}}
+    ),
+    hello_erlang_sup:start_link().
 ----
 
 Routes are explained in details in the xref:routing[Routing]
@@ -127,11 +127,11 @@ the `init/2` function like this to send a reply.
 [source,erlang]
 ----
 init(Req0, State) ->
-	Req = cowboy_req:reply(200,
-		#{<<"content-type">> => <<"text/plain">>},
-		<<"Hello Erlang!">>,
-		Req0),
-	{ok, Req, State}.
+    Req = cowboy_req:reply(200,
+        #{<<"content-type">> => <<"text/plain">>},
+        <<"Hello Erlang!">>,
+        Req0),
+    {ok, Req, State}.
 ----
 
 What the above code does is send a `200 OK` reply, with the
-- 
cgit v1.2.3

