[OpenStack-docs] Docbook help - <rule> inside <programlisting> causes error

Andreas Jaeger aj at suse.com
Thu Apr 9 10:49:51 UTC 2015


On 04/09/2015 12:11 PM, Bernd Bausch wrote:
> Hi,
>
> I am writing a small addition to the config reference guide, which is not
> yet ported to RST as far as I understand it. I must therefore write Docbook
> source.
>
> This line:
>
>      <programlisting language="json">"<target>" : "<rule>"</programlisting>
>
> generates this error:
>
>      The element type "rule" must be terminated by the matching end-tag
> "</rule>"
>
> I thought anything inside a programlisting is not interpreted. How can I
> convince DocBook to accept my text?

Use < and > instead of < and >,

Andreas
-- 
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
    GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
        Graham Norton, HRB 21284 (AG Nürnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126




More information about the OpenStack-docs mailing list