💼 This rule is enabled in the 📋 template-lint-migration config.
Formatting of text through the use of multiple whitespace is entirely visual, and therefore is incompatible with screen-reading assistive technology tools.
The rule applies to the content of Handlebars AST TextNodes, and performs a RegExp search for two consecutive white space characters that might indicate the use of whitespace used for layout.
This rule forbids the following:
<template>
Mon. Eggs Tomato soup House salad<br>
Bacon Hamburger Fried chicken<br>
Toast Onion rings Green beans<br>
Cookie Mashed potatoes
</template>This rule allows the following:
<template>
<p>Start to finish</p>
</template><template>
<p>Start to Finish</p>
</template>To fix issues caused by using whitespace for layout, the following are recommended:
- use the appropriate HTML markup to contain the information
- use CSS to add padding or margins to the semantic HTML markup