[docs] Fix indentation of commands

DocBook outputs the extra spacing before the commands verbatim.
This commit is contained in:
Khaled Hosny 2020-09-26 09:30:25 +02:00
parent 8c5d1332f1
commit db2381c92d
1 changed files with 13 additions and 39 deletions

View File

@ -50,13 +50,9 @@
</para> </para>
<para> <para>
For example, on an Ubuntu or Debian system, you would run: For example, on an Ubuntu or Debian system, you would run:
<programlisting> <programlisting><command>sudo apt install</command> <package>gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev</package></programlisting>
<command>sudo apt install</command> <package>gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev</package>
</programlisting>
On Fedora, RHEL, CentOS, or other Red-Hat&ndash;based systems, you would run: On Fedora, RHEL, CentOS, or other Red-Hat&ndash;based systems, you would run:
<programlisting> <programlisting><command>sudo yum install</command> <package>gcc gcc-c++ freetype-devel glib2-devel cairo-devel</package></programlisting>
<command>sudo yum install</command> <package>gcc gcc-c++ freetype-devel glib2-devel cairo-devel</package>
</programlisting>
</para> </para>
@ -89,13 +85,9 @@
</para> </para>
<para> <para>
On Ubuntu or Debian, run: On Ubuntu or Debian, run:
<programlisting> <programlisting><command>sudo apt-get install</command> <package>meson pkg-config gtk-doc-tools</package></programlisting>
<command>sudo apt-get install</command> <package>meson pkg-config gtk-doc-tools</package>
</programlisting>
On Fedora, RHEL, CentOS, run: On Fedora, RHEL, CentOS, run:
<programlisting> <programlisting><command>sudo yum install</command> <package>meson pkgconfig gtk-doc</package></programlisting>
<command>sudo yum install</command> <package>meson pkgconfig gtk-doc</package>
</programlisting>
</para> </para>
<para> <para>
@ -128,15 +120,11 @@
<emphasis>(1)</emphasis> You must first install the <emphasis>(1)</emphasis> You must first install the
development packages for FreeType, Cairo, and GLib. If you are development packages for FreeType, Cairo, and GLib. If you are
using MacPorts, you should run: using MacPorts, you should run:
<programlisting> <programlisting><command>sudo port install</command> <package>freetype glib2 cairo</package></programlisting>
<command>sudo port install</command> <package>freetype glib2 cairo</package>
</programlisting>
</para> </para>
<para> <para>
If you are using Homebrew, you should run: If you are using Homebrew, you should run:
<programlisting> <programlisting><command>brew install</command> <package>freetype glib cairo</package></programlisting>
<command>brew install</command> <package>freetype glib cairo</package>
</programlisting>
</para> </para>
<para> <para>
<emphasis>(2)</emphasis> The next step depends on whether you are building from the <emphasis>(2)</emphasis> The next step depends on whether you are building from the
@ -147,13 +135,9 @@
<emphasis>(2)(a)</emphasis> If you are installing HarfBuzz <emphasis>(2)(a)</emphasis> If you are installing HarfBuzz
from a downloaded tarball release, extract the tarball and from a downloaded tarball release, extract the tarball and
open a Terminal in the extracted source-code directory. Run: open a Terminal in the extracted source-code directory. Run:
<programlisting> <programlisting><command>meson build</command></programlisting>
<command>meson build</command>
</programlisting>
followed by: followed by:
<programlisting> <programlisting><command>meson compile -C build</command></programlisting>
<command>meson compile -C build</command>
</programlisting>
to build HarfBuzz. to build HarfBuzz.
</para> </para>
<para> <para>
@ -164,30 +148,20 @@
</para> </para>
<para>If you are <para>If you are
using MacPorts, you should run: using MacPorts, you should run:
<programlisting> <programlisting><command>sudo port install</command> <package>meson pkgconfig gtk-doc</package></programlisting>
<command>sudo port install</command> <package>meson pkgconfig gtk-doc</package>
</programlisting>
to install the build dependencies. to install the build dependencies.
</para> </para>
<para>If you are using Homebrew, you should run: <para>If you are using Homebrew, you should run:
<programlisting> <programlisting><command>brew install</command> <package>meson pkgconfig gtk-doc</package></programlisting>
<command>brew install</command> <package>meson pkgconfig gtk-doc</package>
</programlisting>
Finally, you can run: Finally, you can run:
<programlisting> <programlisting><command>meson build</command></programlisting>
<command>meson build</command>
</programlisting>
</para> </para>
<para> <para>
<emphasis>(3)</emphasis> You can now build HarfBuzz (on either <emphasis>(3)</emphasis> You can now build HarfBuzz (on either
a MacPorts or a Homebrew system) by running: a MacPorts or a Homebrew system) by running:
<programlisting> <programlisting><command>meson build</command></programlisting>
<command>meson build</command>
</programlisting>
followed by: followed by:
<programlisting> <programlisting><command>meson compile -C build</command></programlisting>
<command>meson compile -C build</command>
</programlisting>
</para> </para>
<para> <para>
This should leave you with a shared This should leave you with a shared