mipmip / home-manager-option-search

Home Manager Option Search
https://home-manager-options.extranix.com/
Apache License 2.0
259 stars 15 forks source link

Certain spaces disappear in package descriptions #33

Closed vojta001 closed 7 months ago

vojta001 commented 8 months ago

Have a look at programs.feh.keybindings for example. Any space that is represented by a newline in the original source is missing.

I suspect html.gsub!("\n","") in scripts/parse_appendix.rb is at fault. Why is it even there? It is clearly against the HTML spec, as any whitespace is a space and only multiple consecutive spaces shall be skipped.

I believe simply changing the line to html.gsub!("\n"," ") (or dropping it entirely) should fix the issue, but I didn't have a chance yet to test it.

mipmip commented 7 months ago

should be fixed now