Commit bce64834 authored by Gervase Markham's avatar Gervase Markham Committed by Gervase Markham

Bug 962571 - Fix syntax highlighting of code blocks. r=LpSolit, a=justdave.

parent 10cc520e
.. highlight:: perl
.. _customization: .. _customization:
......
.. highlight:: console
.. _install-perlmodules-manual: .. _install-perlmodules-manual:
...@@ -17,12 +17,12 @@ apply this magic incantation, as root: ...@@ -17,12 +17,12 @@ apply this magic incantation, as root:
:: ::
bash# tar -xzvf <module>.tar.gz # tar -xzvf <module>.tar.gz
bash# cd <module> # cd <module>
bash# perl Makefile.PL # perl Makefile.PL
bash# make # make
bash# make test # make test
bash# make install # make install
.. note:: In order to compile source code under Windows you will need to obtain .. note:: In order to compile source code under Windows you will need to obtain
a 'make' utility. The :command:`nmake` utility provided with a 'make' utility. The :command:`nmake` utility provided with
......
.. highlight:: console
.. _troubleshooting: .. _troubleshooting:
...@@ -55,7 +55,7 @@ Bugzilla. ...@@ -55,7 +55,7 @@ Bugzilla.
:: ::
bash$ ./testserver.pl http://landfill.bugzilla.org/bugzilla-tip $ ./testserver.pl http://landfill.bugzilla.org/bugzilla-tip
TEST-OK Webserver is running under group id in $webservergroup. TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got ant picture. TEST-OK Got ant picture.
TEST-OK Webserver is executing CGIs. TEST-OK Webserver is executing CGIs.
...@@ -97,23 +97,27 @@ To fix this, go to ...@@ -97,23 +97,27 @@ To fix this, go to
:file:`<path-to-perl>/lib/DBD/sponge.pm` :file:`<path-to-perl>/lib/DBD/sponge.pm`
in your Perl installation and replace in your Perl installation and replace
:: .. code-block:: perl
my $numFields; my $numFields;
if ($attribs->{'NUM_OF_FIELDS'}) { if ($attribs->{'NUM_OF_FIELDS'}) {
$numFields = $attribs->{'NUM_OF_FIELDS'}; $numFields = $attribs->{'NUM_OF_FIELDS'};
} elsif ($attribs->{'NAME'}) { }
elsif ($attribs->{'NAME'}) {
$numFields = @{$attribs->{NAME}}; $numFields = @{$attribs->{NAME}};
}
with with
:: .. code-block:: perl
my $numFields; my $numFields;
if ($attribs->{'NUM_OF_FIELDS'}) { if ($attribs->{'NUM_OF_FIELDS'}) {
$numFields = $attribs->{'NUM_OF_FIELDS'}; $numFields = $attribs->{'NUM_OF_FIELDS'};
} elsif ($attribs->{'NAMES'}) { }
elsif ($attribs->{'NAMES'}) {
$numFields = @{$attribs->{NAMES}}; $numFields = @{$attribs->{NAMES}};
}
(note the S added to NAME.) (note the S added to NAME.)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment