From cb18d3fe32cebd70e6cedc22a1a7484da362e41b Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Wed, 21 Mar 2018 12:52:05 +0100 Subject: [PATCH] Fix some invalid HTML Fixes 4 kinds of errors found with https://validator.w3.org/nu/#textarea Bad value javascript for attribute lang on element script Bad character after < . Probable cause: Unescaped < . Try escaping it as < . The element label must not appear as a descendant of the label element. Element legend not allowed as child of element form in this context. Note: the change related to seems big because of the increased indent of the existing code (use "git diff --ignore-all-space" or "git log --patch --ignore-all-space" to see the lines actually added). --- .../templates/pluginmanager_settings.jinja2 | 91 ++++++++++--------- .../dialogs/settings/serialconnection.jinja2 | 2 +- src/octoprint/templates/initscript.jinja2 | 2 +- .../templates/tabs/gcodeviewer.jinja2 | 4 +- 4 files changed, 53 insertions(+), 46 deletions(-) diff --git a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 index 6541c2b58..f66f9f35b 100644 --- a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 +++ b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 @@ -245,57 +245,64 @@

{% trans %}You should normally not have to change any of the following settings, they are purely provided for convenience here.{% endtrans %}

- {{ _('Plugin repository configuration') }} +
+ {{ _('Plugin repository configuration') }} -
- -
- -
-
-
- -
-
- - min +
+ +
+
-
- - {{ _('Notices configuration') }} - -
- -
- -
-
-
- -
-
- - min +
+ +
+
+ + min +
-
+
- {{ _('pip configuration') }} +
+ {{ _('Notices configuration') }} -
- -
- +
+ +
+ +
-
-
-
- +
+ +
+
+ + min +
+
-
+
+ +
+ {{ _('pip configuration') }} + +
+ +
+ +
+
+
+
+ +
+
+
+
diff --git a/src/octoprint/templates/initscript.jinja2 b/src/octoprint/templates/initscript.jinja2 index 722830bf3..7ffa07a26 100644 --- a/src/octoprint/templates/initscript.jinja2 +++ b/src/octoprint/templates/initscript.jinja2 @@ -1,4 +1,4 @@ -