mbutterick / pollen-users

please use https://forums.matthewbutterick.com/c/typesetting/ instead
https://forums.matthewbutterick.com/c/typesetting/
52 stars 0 forks source link

Insert newlines when exporting html #105

Open casouri opened 3 years ago

casouri commented 3 years ago

By default, ->html generates a single line of HTML. Is there any way to insert newlines before & after tags?

I should add that I use decode-paragraphs for post-processing so hard-coded newlines are processed out IIUC.

otherjoel commented 3 years ago

In the past I've built sites with a makefile that runs the output through tidy after Pollen has generated it. (example)

You might also try rolling your own ->html function that composes display-xml/content within with-output-to-file.

casouri commented 3 years ago

Thanks, tidy is really handy. It probably does the job way better than what I could've come up with so I'll use that.