]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpl/doc/src/docutils/parsers/rst/directives/htmlrefdoc.py
2 # Copyright Aleksey Gurtovoy 2009
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
8 from docutils
.parsers
.rst
import Directive
9 from docutils
import nodes
12 class license_and_copyright( nodes
.General
, nodes
.Element
): pass
14 class LicenseAndCopyright( Directive
):
18 self
.assert_has_content()
19 result_node
= license_and_copyright( rawsource
= '\n'.join( self
.content
) )
20 self
.state
.nested_parse( self
.content
, self
.content_offset
, result_node
)
21 return [ result_node
]