Fix plot directive when used with multiple options.

The existing template produces newlines between options, which were confusing
the reST parser. By fiddling with whitespace control, the template can
be made to put things together correctly.

See #2928.