From 3db18939c50440eda6775b1ff05253d38f0548a2 Mon Sep 17 00:00:00 2001 From: Nathaniel Morck Beaver Date: Sat, 13 Jun 2020 20:05:44 -0400 Subject: [PATCH] Make length of dashes make length of label. --- gourmet/exporters/exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gourmet/exporters/exporter.py b/gourmet/exporters/exporter.py index fdb2de519..2c1e1bcaf 100644 --- a/gourmet/exporters/exporter.py +++ b/gourmet/exporters/exporter.py @@ -245,7 +245,7 @@ def write_foot (self): @pluggable_method def write_inghead(self): """Write any necessary markup before ingredients.""" - self.out.write("\n---\n%s\n---\n"%_("Ingredients")) + self.out.write("\n-----------\n%s\n-----------\n"%_("Ingredients")) @pluggable_method def write_ingfoot(self): @@ -286,7 +286,7 @@ def write_text (self, label, text): handle_markup methods (handle_italic, handle_bold, handle_underline). """ - self.out.write("\n---\n%s\n---\n"%label) + self.out.write("\n"+"-"*len(label)+"\n%s\n"%label+"-"*len(label)+"\n") ll=text.split("\n") for l in ll: for wrapped_line in textwrap.wrap(l):