HTML "select" tags have too much indentation
See original GitHub issueHTML “select” tags have too much indentation.
Input
The code looked like this before beautification:
<select class="col-4 form-input" ng-model="info.dateRange" ng-init="info.dateRange = 'last24'">
<option selected="selected" value="last24">{{"dashboard_records_text_7" | translate}}</option>
<option value="last7">{{"dashboard_records_text_8" | translate}}</option>
<option value="custom">{{"dashboard_records_text_9" | translate}}</option>
</select>
Expected Output
The code should have looked like this after beautification:
<select class="col-4 form-input" ng-model="info.dateRange" ng-init="info.dateRange = 'last24'">
<option selected="selected" value="last24">{{"dashboard_records_text_7" | translate}}</option>
<option value="last7">{{"dashboard_records_text_8" | translate}}</option>
<option value="custom">{{"dashboard_records_text_9" | translate}}</option>
</select>
Actual Output
The code actually looked like this after beautification:
<select class="col-4 form-input" ng-model="info.dateRange" ng-init="info.dateRange = 'last24'">
<option selected="selected" value="last24">{{"dashboard_records_text_7" | translate}}</option>
<option value="last7">{{"dashboard_records_text_8" | translate}}</option>
<option value="custom">{{"dashboard_records_text_9" | translate}}</option>
</select>
Environment
OS: Mac Version tested with: 1.6.7
Settings
Example:
var options = {
"wrap_line_length": 80,
"indent_handlebars": true
};
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
html - Rendering a hierarchy of "OPTION"s in a "SELECT" tag
I have a hierarchy type structure that I want to display inside a list. The hierarchy contains Countries, States and Cities (it is...
Read more >HTML Indentation and Spacing - LearnHowToProgram.com
When you are writing HTML (or any other programming language), well-written code follows consistent indentation and spacing patterns.
Read more >Consistent list indentation - CSS: Cascading Style Sheets | MDN
One of the most common style changes made to lists is a change in the indentation distance—that is, how far the list items...
Read more >Indentation of html attributes should be the same after ... - GitHub
Create a html tag with three or more attributes. (Like in the images above); Select the whole html tag and indent it with...
Read more >Formatting & Indenting Your HTML - Scott Granneman
Why indent your code? ↩. Let's look at some examples of coding techniques to make it clear why you should indent your HTML....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
select
is an unformatted tag by default. This isn’t a bug. Add the following to your options:@HookyQR The main problem we have here is lack of feedback and breadth of inputs. I’ve had some people provide very useful bugs on the rc. 1.8.0 is a massive change so if you have any test inputs or can run some tests or get some more folks to give it a try.
One key change is the addition of the “inline” and “content_unformatted” options which mostly supercede the “unformatted” option.
On Sun, Aug 12, 2018, 3:49 AM HookyQR notifications@github.com wrote: