Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make length of dashes match length of label. #993

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gourmet/exporters/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down