Skip to content

Commit 512f00c

Browse files
authored
Merge pull request #1212 from seeM/fix-1186
end `sidebar.yml` with newline
2 parents c384aa5 + 52816d3 commit 512f00c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbdev/quarto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _f(a,b): return Path(a),b
104104

105105
yml_path = path/'sidebar.yml'
106106
yml = "website:\n sidebar:\n contents:\n"
107-
yml += '\n'.join(f' {o}' for o in res)
107+
yml += '\n'.join(f' {o}' for o in res)+'\n'
108108
if printit: return print(yml)
109109
yml_path.write_text(yml)
110110

nbs/api/quarto.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
"\n",
196196
" yml_path = path/'sidebar.yml'\n",
197197
" yml = \"website:\\n sidebar:\\n contents:\\n\"\n",
198-
" yml += '\\n'.join(f' {o}' for o in res)\n",
198+
" yml += '\\n'.join(f' {o}' for o in res)+'\\n'\n",
199199
" if printit: return print(yml)\n",
200200
" yml_path.write_text(yml)"
201201
]

0 commit comments

Comments
 (0)