rspec/rules/S2321/rule.adoc

21 lines
231 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
Each element should be on a line to itself.
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,text]
2020-06-30 12:48:07 +02:00
----
<parent><child /></parent> <!-- Noncompliant -->
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,text]
2020-06-30 12:48:07 +02:00
----
<parent>
<child />
</parent>
----