Skip to content

Commit

Permalink
Add another newline to prevent the first heading in the file from being
Browse files Browse the repository at this point in the history
misinterpreted.
  • Loading branch information
liorokman committed Feb 25, 2023
1 parent 1c5cb6c commit 7e55b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ else
echo "done"
elif [ -n "$ADD" ]; then
# No TOC placements found, but they should be added
sed -i "1s;^;<!-- TOC START -->\n<!-- TOC END -->\n;" $FILE
sed -i "1s;^;<!-- TOC START -->\n<!-- TOC END -->\n\n;" $FILE
replaceInFile "$FILE" "$COLLAPSE_TOC" "$FORCE"
echo "done"
else
Expand Down

0 comments on commit 7e55b13

Please sign in to comment.