diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 5d14f31..ee3a6a8 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1092,7 +1092,7 @@ function template_preprocess_feed_icon(&$variables) { function theme_indentation($variables) { $output = ''; for ($n = 0; $n < $variables['size']; $n++) { - $output .= '
 
'; + $output .= '
 
'; } return $output; } diff --git a/core/modules/system/css/system.module.css b/core/modules/system/css/system.module.css index 0359e4b..b38c5e5 100644 --- a/core/modules/system/css/system.module.css +++ b/core/modules/system/css/system.module.css @@ -134,14 +134,14 @@ a.tabledrag-handle:focus .handle { .touch .draggable.drag a.tabledrag-handle .handle { background-position: 50% -32px; } -div.js-indentation { +.indentation { float: left; /* LTR */ height: 1.7em; margin: -0.4em 0.2em -0.4em -0.4em; /* LTR */ padding: 0.42em 0 0.42em 0.6em; /* LTR */ width: 20px; } -[dir="rtl"] div.js-indentation { +[dir="rtl"] .indentation { float: right; margin: -0.4em -0.4em -0.4em 0.2em; padding: 0.42em 0.6em 0.42em 0; diff --git a/core/modules/system/templates/indentation.html.twig b/core/modules/system/templates/indentation.html.twig index e5e7b32..e07e3c1 100644 --- a/core/modules/system/templates/indentation.html.twig +++ b/core/modules/system/templates/indentation.html.twig @@ -17,4 +17,4 @@ See https://api.drupal.org/api/function/theme_indentation/8 for details. After copying this file to your theme's folder and customizing it, remove this HTML comment. --> -{% for i in 1..size if size > 0 %}
 
{% endfor %} +{% for i in 1..size if size > 0 %}
 
{% endfor %} diff --git a/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php b/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php index 0e40c1e..6c017c1 100644 --- a/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php +++ b/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php @@ -53,7 +53,7 @@ function testTermIndentation() { // Submit the edited form and check for HTML indentation element presence. $this->drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->get('vid') . '/overview', $edit, t('Save')); - $this->assertPattern('|
 
|'); + $this->assertPattern('|
 
|'); // Check explicitly that term 2's parent is term 1. $parents = taxonomy_term_load_parents($term2->id());