Subject: Re: bug#21772: 'stexi->shtml' produces invalid SXML for @itemize

From: [email-masked] (Ludovic Courtès)
Date: Sat, 19 Mar 2016 14:40:42 +0100

[email-masked] (Ludovic Courtès) skribis:

> As of 2.0.11, we get this:
>
> scheme@(guile-user)> ,use(texinfo html)
> scheme@(guile-user)> ,use(texinfo)
> scheme@(guile-user)> (stexi->shtml (texi-fragment->stexi "@itemize\n@item foo\n@end itemize\n"))
> $3 = (div (ul (% (bullet (bullet))) (li (p "foo"))))
> scheme@(guile-user)> ,use(sxml simple)
> scheme@(guile-user)> (sxml->xml $3)
> <div><ul>ERROR: In procedure scm-error:
> ERROR: Invalid name starting character "%" %

Same with @acronym:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (stexi->shtml (texi-fragment->stexi "@acronym{GNU}"))

;;; WARNING (Don't know how to convert acronym to HTML)
$2 = (div (p ((% (acronym "GNU")))))
--8<---------------cut here---------------end--------------->8---

Ludo’.