[Top][All Lists]

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

guile-lib <p> handling

From: Michal Herko
Subject: guile-lib <p> handling
Date: Mon, 16 Mar 2020 14:40:45 +0100

Dear maintainor of guile-lib.
I believe the special handling of <p> elements in (htmlprag) module to be a bug.
For example:

(use-modules (htmlprag))
(html->shtml "<html><body><div><p>text</p></div></body></html>")
; expected result (*TOP* (html (body (div (p "text")))))
; actual (*TOP* (html (body (div) (p "text"))))

Note that the <p> element is parsed outside the <div> element.
I attach the simple patch to remove the special case for <p> elements.

Attachment: p.diff
Description: Text Data

reply via email to

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