diff --git a/flamingo/plugins/rst/bootstrap3.py b/flamingo/plugins/rst/bootstrap3.py index ee6b572..25b690b 100644 --- a/flamingo/plugins/rst/bootstrap3.py +++ b/flamingo/plugins/rst/bootstrap3.py @@ -17,10 +17,19 @@ def run(self): return nodes class BootstrapRow(NestedDirective): + option_spec = { + "margin-top": directives.unchanged, + "margin-bottom": directives.unchanged, + } + def run(self): nodes = super().run(context) - nodes.insert(0, raw("", '
', format="html")) + stylespec = [] + for k, v in self.options.items(): + if k in self.option_spec: + stylespec.append(f"{k}: {v};") + nodes.insert(0, raw("", f'
', format="html")) nodes.append(raw("", "
", format="html")) return nodes