locking.html.in: Kill useless spaces in <pre/>

The <pre/> section is rendered as-is on the page. That is, if all
the lines are prefixed with 4 spaces the rendered page will also
have them. Problem is if we put a box around such <pre/> because
the content might not fix into it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2016-11-11 23:40:27 +01:00
parent e693c444af
commit f639ab2a4f

View File

@ -122,7 +122,7 @@
</p>
<pre>
#include &lt;libvirt/plugins/lock_manager.h&gt;
#include &lt;libvirt/plugins/lock_manager.h&gt;
</pre>
<p>
@ -141,7 +141,7 @@
</p>
<pre>
lockManager="sanlock"
lockManager="sanlock"
</pre>
<p>
@ -169,7 +169,7 @@
</p>
<pre>
virLockManagerParam params[] = {
virLockManagerParam params[] = {
{ .type = VIR_LOCK_MANAGER_PARAM_TYPE_UUID,
.key = "uuid",
},
@ -189,19 +189,19 @@
.key = "uri",
.value = { .cstr = driver->uri },
},
};
mgr = virLockManagerNew(lockPlugin,
};
mgr = virLockManagerNew(lockPlugin,
VIR_LOCK_MANAGER_TYPE_DOMAIN,
ARRAY_CARDINALITY(params),
params,
0)));
foreach (initial disks)
foreach (initial disks)
virLockManagerAddResource(mgr,
VIR_LOCK_MANAGER_RESOURCE_TYPE_DISK,
$path, 0, NULL, $flags);
if (virLockManagerAcquire(lock, NULL, 0) &lt; 0);
if (virLockManagerAcquire(lock, NULL, 0) &lt; 0);
...abort...
</pre>
@ -214,8 +214,8 @@
</p>
<pre>
char *state = NULL;
virLockManagerParam params[] = {
char *state = NULL;
virLockManagerParam params[] = {
{ .type = VIR_LOCK_MANAGER_PARAM_TYPE_UUID,
.key = "uuid",
},
@ -235,19 +235,19 @@
.key = "uri",
.value = { .cstr = driver->uri },
},
};
mgr = virLockManagerNew(lockPlugin,
};
mgr = virLockManagerNew(lockPlugin,
VIR_LOCK_MANAGER_TYPE_DOMAIN,
ARRAY_CARDINALITY(params),
params,
0)));
foreach (initial disks)
foreach (initial disks)
virLockManagerAddResource(mgr,
VIR_LOCK_MANAGER_RESOURCE_TYPE_DISK,
$path, 0, NULL, $flags);
virLockManagerRelease(mgr, &amp; state, 0);
virLockManagerRelease(mgr, &amp; state, 0);
</pre>
<p>