[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: website: packages: Fix HTML validation error.

From: Luis Felipe López Acevedo
Subject: 01/01: website: packages: Fix HTML validation error.
Date: Sat, 9 Dec 2017 10:11:04 -0500 (EST)

lfla pushed a commit to branch master
in repository guix-artwork.

commit 61b79b7fdd5a2a5bbaae7f53891e489ffa28fc95
Author: sirgazil <address@hidden>
Date:   Sat Dec 9 09:54:57 2017 -0500

    website: packages: Fix HTML validation error.
    This fixes the "No p element in scope but a p end tag seen" HTML
    validation error, which is one of the errors in bug #24981.
    The error resulted from putting the DIV element generated by
    `package-description-shtml` inside the P element used for the package
    * website/apps/packages/templates/components.scm (detailed-package-preview):
      Make package description a DIV element.
 website/apps/packages/templates/components.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/website/apps/packages/templates/components.scm 
index 32515e0..1e5e7cd 100644
--- a/website/apps/packages/templates/components.scm
+++ b/website/apps/packages/templates/components.scm
@@ -41,10 +41,11 @@
       (@ (class "package-synopsis"))
       " — "
       ,(package-synopsis-shtml package)))
-    (p
+    (div
      (@ (class "package-description"))
      ,(if (gnu-package? package)
-          '(i "This is a GNU package.  ")
+          '(p (i "This is a GNU package.  "))
      ,(package-description-shtml package))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]