Re: whitespace in html quasiquote variables
Jan Wielemaker <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Anne,
HTML quasi quotations go through parsing and serialization, and
thus does not preserve layout and comments.
--- Jan
On 09/02/2013 02:11 AM, Anne Ogborn wrote:
>
>
> This
>
> section(Name) -->
> html({|html(Name)||
> � �<div>Name</div>|}).
>
>
> does what one expects. � <
>
> section(Name) -->
> html({|html(Name)||
> � �<div>Name
> </div>|}).
>
> puts <div>Name</div> in the output
>
> Since whitespace usually isn't significant in HTML I wouldn't have expected this behavior.
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
_______________________________________________
SWI-Prolog mailing list
[email protected]
https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog