Avoid appending to preexisting files
Previously, multiple md2point calls required manually removing output text files between calls as content was always appended to the output file. This is no longer the case with this commit, as output files are cleared on first write. Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
parent
1d4661b2ba
commit
fd83f17fab
@ -27,7 +27,7 @@ do
|
||||
fname="$(mkfilename "$snum" "$title")"
|
||||
snum=$((snum + 1))
|
||||
printf "\n %s\n %s\n\n" \
|
||||
"$title" "$(mkunderline $titlelen "=")" >> $fname
|
||||
"$title" "$(mkunderline $titlelen "=")" > $fname
|
||||
;;
|
||||
\#pause)
|
||||
fname="$(mkfilename "$snum" "$title")"
|
||||
|
Loading…
Reference in New Issue
Block a user