diff --git a/templating/build.py b/templating/build.py index 258e4a17..6756bed9 100755 --- a/templating/build.py +++ b/templating/build.py @@ -76,12 +76,10 @@ def main(input_module, file_stream=None, out_dir=None, verbose=False): return " "*indent + input def wrap(input, wrap=80, initial_indent=""): - if len(input) == 0: - return initial_indent - input_lines = input.split('\n') + input_lines = input.split('\n\n') wrapper = TextWrapper(initial_indent=initial_indent, width=wrap) output_lines = [wrapper.fill(line) for line in input_lines] - return '\n'.join(output_lines) + return '\n\n'.join(output_lines) # make Jinja aware of the templates and filters env = Environment(