From 453646b88798f4835a4c82cac103c801ddde4818 Mon Sep 17 00:00:00 2001
From: Ian Fan <ianfan0@gmail.com>
Date: Sat, 11 Aug 2018 00:29:24 +0100
Subject: [PATCH] commands: fix documentation formatting mistakes for move
 command

---
 sway/commands/move.c | 2 +-
 sway/sway.5.scd      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sway/commands/move.c b/sway/commands/move.c
index acdc50b5..f5eb9124 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -22,7 +22,7 @@
 static const char *expected_syntax =
 	"Expected 'move <left|right|up|down> <[px] px>' or "
 	"'move [--no-auto-back-and-forth] <container|window> [to] workspace <name>' or "
-	"'move [--no-auto-back-and-forth] <container|window|workspace> [to] output <name|direction>' or "
+	"'move <container|window|workspace> [to] output <name|direction>' or "
 	"'move <container|window> [to] mark <mark>'";
 
 static struct sway_container *output_in_direction(const char *direction,
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index 34389e41..8e56d5bb 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -132,7 +132,7 @@ They are expected to be used with *bindsym* or at runtime through *swaymsg*(1).
 	If unspecified, the default is 10 pixels. Pixels are ignored when moving
 	tiled containers.
 
-*move* [absolute] position <pos_x> [px] <pos_y> [px]
+*move* [absolute] position <pos\_x> [px] <pos\_y> [px]
 	Moves the focused container to the specified position.
 
 *move* [absolute] position center|mouse
@@ -154,7 +154,7 @@ They are expected to be used with *bindsym* or at runtime through *swaymsg*(1).
 	Moves the focused container to the previous or next workspace on this
 	output, wrapping around if already at the first or last workspace.
 
-*move* container|window [to] workspace back_and_forth
+*move* container|window [to] workspace back\_and\_forth
 	Moves the focused container to previously focused workspace.
 
 *move* container|window|workspace [to] output <name>