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)