anilgulecha/trelby — comment on commit 4c13588c576fb13022811265c7a6da31e72040bc
File: src/watermark.py line 85
By oskusalerma:

That's a pretty inefficient and strange way of doing this duplicate-and-empty removal. I suggest:

watermarks = set(watermarks)

for it in watermarks:
s = it.strip()

if not s:
continue

generate pdf with "s" as watermark