Skip to content

Commit

Permalink
new line inconsistencies fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yjmantilla committed Jun 14, 2024
1 parent 8156b22 commit dacd1e7
Show file tree
Hide file tree
Showing 3 changed files with 284 additions and 284 deletions.
4 changes: 2 additions & 2 deletions gen-static-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ def collect_graph(mypath,output_path='files\graph.json',extension='.md',out_exte
node['title']=node['title'].lower() # make it more easy to search as search is case sensitive
else:
node['title'] = node['id'].lower()
node['content'] = format_content_with_front_matter(data2, front_matter_lines)
node['content'] = format_content_with_front_matter(data2, front_matter_lines).rstrip()
else:
print(node, 'has no front matter')
node['title'] = node['id'].lower()
node['content'] = data2
node['content'] = data2.rstrip()
except Exception as e:
print('Error processing file for node', node, 'at', this_file, ":", e) #exit()
# sort nodes and links by id
Expand Down
Loading

0 comments on commit dacd1e7

Please sign in to comment.