Package: discount
Version: 2.1.7-1
Severity: wishlist
Tags: patches
Usertags: randomness


As part of the “reproducible builds” project [1], we have identified
that currently discount output was not deterministic when the Markdown
source contained email addresses.

Some Debian packages use discount to generate their documentation. This
causes different builds of these packages to be different.

We assume that the current behavior of randomly choosing between hex and
decimal encoding for email addresses is intended to defeat email
scrapers that understand one encoding but not the other. Could discount
instead alternate every other character between hex and decimal? This
would accomplish the same effect but in a deterministic manner.

The attached patch changes the `mangle()` function accordingly. It has
already been submitted upstream.


Lunar                                .''`.                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 

Attachment: signature.asc
Description: Digital signature

Reproducible-builds mailing list

Reply via email to