diff --git a/doc/building.dox b/doc/building.dox
index d284c7ea..80c7425d 100644
--- a/doc/building.dox
+++ b/doc/building.dox
@@ -85,14 +85,12 @@ $> sudo ninja -C builddir/ uninstall
The following commands reinstall the current system package for libinput,
overwriting manually installed files.
-
-- Debian/Ubuntu based distributions: `sudo apt-get install
---reinstall libinput`
-- Fedora 22 and later: `sudo dnf reinstall libinput`
-- RHEL/CentOS/Fedora 21 and earlier: `sudo yum reinstall libinput`
-- openSUSE: `sudo zypper install --force libinput10`
-- Arch: `sudo packman -S libinput`
-
+- Debian/Ubuntu based distributions: `sudo apt-get install
+--reinstall libinput`
+- Fedora 22 and later: `sudo dnf reinstall libinput`
+- RHEL/CentOS/Fedora 21 and earlier: `sudo yum reinstall libinput`
+- openSUSE: `sudo zypper install --force libinput10`
+- Arch: `sudo packman -S libinput`
@subsection building_selinux SELinux adjustments
@@ -132,20 +130,19 @@ In most cases, it is sufficient to install the dependencies that your
distribution uses to build the libinput package. These can be installed
with one of the following commands:
-
-- Debian/Ubuntu based distributions: `sudo apt-get build-dep
-libinput`
-- Fedora 22 and later: `sudo dnf builddep libinput`
-- RHEL/CentOS/Fedora 21 and earlier: `sudo yum-builddep libinput`
-- openSUSE:
+- Debian/Ubuntu based distributions: `sudo apt-get build-dep
+libinput`
+- Fedora 22 and later: `sudo dnf builddep libinput`
+- RHEL/CentOS/Fedora 21 and earlier: `sudo yum-builddep libinput`
+- openSUSE:
@verbatim
$> sudo zypper modifyrepo --enable `zypper repos | grep source | awk '{print $5}'`
$> sudo zypper source-install -d libinput10
$> sudo zypper install autoconf automake libtool
$> sudo zypper modifyrepo --disable `zypper repos | grep source | awk '{print $5}'`
@endverbatim
-
-- Arch:
+
+- Arch:
@verbatim
$> sudo pacman -S asp
$> cd $(mktemp -d)
@@ -153,8 +150,7 @@ $> asp export libinput
$> cd libinput
$> makepkg --syncdeps --nobuild --noextract
@endverbatim
-
-
+
If dependencies are missing, a message `No package 'foo' found` will be
shown during the configure stage. See