fix: formatter for html and special casing of content-type#170
fix: formatter for html and special casing of content-type#170teto merged 2 commits intorest-nvim:mainfrom udayvir-singh:main
Conversation
Fixes error caused by html formatter running even when tidy is not available on the system. Also fixes docs related to disabling formatters.
setting the value to nil is the standard way of removing a key from a table http://lua-users.org/wiki/StoringNilsInTables so I was surprised by the current behavior, which may be an oddity of tbl_deep_extend (maybe worth documenting upstream). I will test then merge |
|
From lua-users wiki:
So basically coming back to my original comment, the following two tables are indistinguishable: local tbl1 = {}
local tbl2 = {
a = nil,
b = nil,
c = nil,
d = nil,
... -- all the way to infinity
} |
FIX 1
Fixes error caused by html formatter running even when tidy is not available on the system. Also fixes docs related to disabling formatters.
Reason why formatter should be set to
falseinstead ofnil:nilmeans nothing, ie. absence of value; that's why you have how passfalseinstead which has a actual value0in binary which can be set to a variable and passed around.Here's another analogy:
Let's say you asked me to put something in a box, and I put
<nothing>in the box. Is the box now empty or does it containnothing? There is no way for you to verify that.FIX 2
Fixes #157 hardcoded lower casing of content-type.