[pve-devel] [PATCH pve-manager 2/2] Cosmetic improvement: display the generated HTML with proper indenting

Emmanuel Kasper e.kasper at proxmox.com
Tue May 3 13:40:57 CEST 2016


---
 PVE/ExtJSIndex.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/ExtJSIndex.pm b/PVE/ExtJSIndex.pm
index 9683148..75925ea 100644
--- a/PVE/ExtJSIndex.pm
+++ b/PVE/ExtJSIndex.pm
@@ -21,9 +21,9 @@ _EOD
 
     my $langfile = "/usr/share/pve-manager/locale/pve-lang-${lang}.js";
     if (-f $langfile) {
-	$page .= "<script type='text/javascript' src='/pve2/locale/pve-lang-${lang}.js'></script>";
+	$page .= "    <script type='text/javascript' src='/pve2/locale/pve-lang-${lang}.js'></script>\n";
     } else {
-	$page .= '<script type="text/javascript">function gettext(buf) { return buf; }</script>';
+	$page .= "    <script type='text/javascript'>function gettext(buf) { return buf; }</script>\n";
     }
 
     if ($debug) {
-- 
2.1.4





More information about the pve-devel mailing list