Skip to content

Commit ccb8f74

Browse files
committed
Place HTML5 element on a new line
This commit reformats the AUTO_BUILD_ELEMENTS list within the HTML module. Each element now occupies a separate line. Previously, the list was densely packed, making it harder to read and maintain. This change: - Improves readability by providing visual separation between elements. - Facilitates easier sorting, both manually and potentially with future tooling. - Reduces the scope of diffs when the list is modified. Future changes will only affect the relevant lines, not the entire list.
1 parent 0405ce9 commit ccb8f74

File tree

1 file changed

+107
-11
lines changed

1 file changed

+107
-11
lines changed

lib/arbre/html/html5_elements.rb

Lines changed: 107 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,113 @@
22
module Arbre
33
module HTML
44

5-
AUTO_BUILD_ELEMENTS = [ :a, :abbr, :address, :area, :article, :aside, :audio, :b, :base,
6-
:bdo, :blockquote, :body, :br, :button, :canvas, :caption, :cite,
7-
:code, :col, :colgroup, :command, :datalist, :dd, :del, :details,
8-
:dfn, :div, :dl, :dt, :em, :embed, :fieldset, :figcaption, :figure,
9-
:footer, :form, :h1, :h2, :h3, :h4, :h5, :h6, :head, :header, :hgroup,
10-
:hr, :html, :i, :iframe, :img, :input, :ins, :keygen, :kbd, :label,
11-
:legend, :li, :link, :main, :map, :mark, :menu, :menuitem, :meta, :meter, :nav, :noscript,
12-
:object, :ol, :optgroup, :option, :output, :param, :pre, :progress, :q,
13-
:s, :samp, :script, :section, :select, :small, :source, :span,
14-
:strong, :style, :sub, :summary, :sup, :svg, :table, :tbody, :td,
15-
:textarea, :tfoot, :th, :thead, :time, :title, :tr, :track, :ul, :var, :video, :wbr ]
5+
AUTO_BUILD_ELEMENTS = [
6+
:a,
7+
:abbr,
8+
:address,
9+
:area,
10+
:article,
11+
:aside,
12+
:audio,
13+
:b,
14+
:base,
15+
:bdo,
16+
:blockquote,
17+
:body,
18+
:br,
19+
:button,
20+
:canvas,
21+
:caption,
22+
:cite,
23+
:code,
24+
:col,
25+
:colgroup,
26+
:command,
27+
:datalist,
28+
:dd,
29+
:del,
30+
:details,
31+
:dfn,
32+
:div,
33+
:dl,
34+
:dt,
35+
:em,
36+
:embed,
37+
:fieldset,
38+
:figcaption,
39+
:figure,
40+
:footer,
41+
:form,
42+
:h1,
43+
:h2,
44+
:h3,
45+
:h4,
46+
:h5,
47+
:h6,
48+
:head,
49+
:header,
50+
:hgroup,
51+
:hr,
52+
:html,
53+
:i,
54+
:iframe,
55+
:img,
56+
:input,
57+
:ins,
58+
:kbd,
59+
:keygen,
60+
:label,
61+
:legend,
62+
:li,
63+
:link,
64+
:main,
65+
:map,
66+
:mark,
67+
:menu,
68+
:menuitem,
69+
:meta,
70+
:meter,
71+
:nav,
72+
:noscript,
73+
:object,
74+
:ol,
75+
:optgroup,
76+
:option,
77+
:output,
78+
:param,
79+
:pre,
80+
:progress,
81+
:q,
82+
:s,
83+
:samp,
84+
:script,
85+
:section,
86+
:select,
87+
:small,
88+
:source,
89+
:span,
90+
:strong,
91+
:style,
92+
:sub,
93+
:summary,
94+
:sup,
95+
:svg,
96+
:table,
97+
:tbody,
98+
:td,
99+
:textarea,
100+
:tfoot,
101+
:th,
102+
:thead,
103+
:time,
104+
:title,
105+
:tr,
106+
:track,
107+
:ul,
108+
:var,
109+
:video,
110+
:wbr
111+
]
16112

17113
HTML5_ELEMENTS = [ :p ] + AUTO_BUILD_ELEMENTS
18114

0 commit comments

Comments
 (0)