Eakam1007 / rost_gen

A simple static site generator built using Rust
MIT License
0 stars 3 forks source link

BUG - title tag has a redundant blank line when text file includes a title #35

Open Eakam1007 opened 1 year ago

Eakam1007 commented 1 year ago

This only happens if there was a title in the source txt file, i.e., first line followed by two blank lines:

extra line in title

Here, text file started with:

This is a title

other content...

If the text file does not contain a title, the output does not have a blank line. Here the file name is being used as the title as a title was not found:

image

And the text file started with:

This is not a title

other content...