htmlbeautifier 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/htmlbeautifier +1 -4
- data/lib/htmlbeautifier/html_parser.rb +5 -4
- data/lib/htmlbeautifier/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd09d146c5469cdbf95c8d49a0e9b9a32d765d210a2b4c443a9d0845ab56affd
|
4
|
+
data.tar.gz: c7746bcdc9b4952257db38632bed91ba40302cb85a946db3d609f511bb815a68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebbb7b47f269a6a7a508372a65f9eb58b38d87aa2d986e3fb834d8c247503f0eafe651d9002d4b0e18f4de95dcd59bf056a633d10948a090b959e86f013cd79e
|
7
|
+
data.tar.gz: 833b04c89b02eb0228442cfbf921201d4597bf9a1d994f346faf3333a0721935f68884ce6311f5b27ebad9aac79056500917f0c524119cf99f70d6b509b805fd
|
data/bin/htmlbeautifier
CHANGED
@@ -101,12 +101,9 @@ if ARGV.any?
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
unless failures.empty?
|
104
|
-
relative_paths = failures.map { |path|
|
105
|
-
Pathname.new(path).relative_path_from Dir.pwd
|
106
|
-
}
|
107
104
|
$stderr.puts [
|
108
105
|
"Lint failed - files would be modified:",
|
109
|
-
*
|
106
|
+
*failures
|
110
107
|
].join("\n")
|
111
108
|
exit 1
|
112
109
|
end
|
@@ -10,10 +10,11 @@ module HtmlBeautifier
|
|
10
10
|
link | meta | param | source | track | wbr
|
11
11
|
)}mix
|
12
12
|
HTML_BLOCK_ELEMENTS = %r{(?:
|
13
|
-
address | article | aside | audio | blockquote | canvas | dd |
|
14
|
-
dl | dt | fieldset | figcaption | figure | footer | form |
|
15
|
-
|
16
|
-
|
13
|
+
address | article | aside | audio | blockquote | canvas | dd | details |
|
14
|
+
dir | div | dl | dt | fieldset | figcaption | figure | footer | form |
|
15
|
+
h1 | h2 | h3 | h4 | h5 | h6 | header | hr | li | menu | noframes |
|
16
|
+
noscript | ol | p | pre | section | table | tbody | td | tfoot | th |
|
17
|
+
thead | tr | ul | video
|
17
18
|
)}mix
|
18
19
|
|
19
20
|
MAPPINGS = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmlbeautifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Battley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|