From 00c6914e2343619c203f0e8ba9da7524bf021805 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Tue, 11 Jun 2019 08:46:38 +0100 Subject: [PATCH] Try again GFM is so broken! --- examples/MainsBreakOutBox/readme.md | 12 ++++++------ scripts/views.py | 11 ++++------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/examples/MainsBreakOutBox/readme.md b/examples/MainsBreakOutBox/readme.md index 019b6cd..087226a 100644 --- a/examples/MainsBreakOutBox/readme.md +++ b/examples/MainsBreakOutBox/readme.md @@ -1,4 +1,4 @@ - + # MainsBreakOutBox 13A socket break out box with 4mm jacks to measure voltage and / or load current and earth leakage current. @@ -27,7 +27,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin [Top](#TOP) --- - + ## Parts list | Base | Feet | Mains In | Main | TOTALS | | |--:|--:|--:|--:|--:|:--| @@ -54,7 +54,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin [Top](#TOP) --- - + ## Base Assembly ### Vitamins |Qty|Description| @@ -81,7 +81,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin [Top](#TOP) --- - + ## Feet Assembly ### Vitamins |Qty|Description| @@ -117,7 +117,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin [Top](#TOP) --- - + ## Mains In Assembly ### Vitamins |Qty|Description| @@ -156,7 +156,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin [Top](#TOP) --- - + ## Main Assembly ### Vitamins |Qty|Description| diff --git a/scripts/views.py b/scripts/views.py index 09aadb6..e1fa89d 100644 --- a/scripts/views.py +++ b/scripts/views.py @@ -178,8 +178,7 @@ def views(target, do_assemblies = None): # Title, description and picture # project = ' '.join(word[0].upper() + word[1:] for word in os.path.basename(os.getcwd()).split('_')) - print('', file = doc_file) - print('# %s' % project, file = doc_file) + print('\n# %s' % project, file = doc_file) main_file = bom.find_scad_file('main_assembly') if not main_file: raise Exception("can't find source for main_assembly") @@ -205,8 +204,7 @@ def views(target, do_assemblies = None): # # Global BOM # - print('', file = doc_file) - print('## Parts list', file = doc_file) + print('\n## Parts list', file = doc_file) vitamins = {} printed = {} routed = {} @@ -246,11 +244,10 @@ def views(target, do_assemblies = None): name = ass["name"] cap_name = name.replace('_', ' ').title() - print('' % name, file = doc_file) if ass["count"] > 1: - print("## %d x %s" % (ass["count"], cap_name), file = doc_file) + print('\n## %d x %s' % (name, ass["count"], cap_name), file = doc_file) else: - print("## %s" % cap_name, file = doc_file) + print('\n## %s' % (name, cap_name), file = doc_file) vitamins = ass["vitamins"] if vitamins: print("### Vitamins", file = doc_file)