From 3e0a06445b130a68f9a2401b5d8b52e9283b92ec Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 20 Oct 2014 17:17:21 +0200 Subject: bupa: use fragment instead of html_body to get rid of document divs --- scripts/bupa | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/bupa b/scripts/bupa index d0630f5..7220ceb 100755 --- a/scripts/bupa +++ b/scripts/bupa @@ -6,12 +6,10 @@ Options: """ from jinja2 import Environment, FileSystemLoader import glob, yaml, docopt - from docutils import core -from docutils.writers.html4css1 import Writer def reST_to_html(s): - return core.publish_parts(s, writer_name='html4css1')['html_body'] + return core.publish_parts(s, writer_name='html4css1')['fragment'] def filename_to_id(file_name): return int(file_name.split('/')[-1]. -- cgit v1.2.3-54-g00ecf