From: Ian Jackson Date: Wed, 31 Mar 2021 19:26:04 +0000 (+0100) Subject: html: Fix hjoin X-Git-Tag: otter-0.5.0~361 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c4b1cf569685dfa73105cf1718be3c09f0a669f6;p=otter.git html: Fix hjoin Practical effect is to fix the formatting of the Links table. Signed-off-by: Ian Jackson --- diff --git a/src/html.rs b/src/html.rs index 4c7f9b74..20f3b130 100644 --- a/src/html.rs +++ b/src/html.rs @@ -112,9 +112,10 @@ impl T { { let j: &HtmlStr = j.as_ref(); Html::from_html_string( - self - .map(|h| h.as_ref().as_html_str()) - .zip( iter::once("").chain(iter::repeat(j.as_html_str())) ) + izip!( + iter::once("").chain(iter::repeat(j.as_html_str())), + self.map(|h| h.as_ref().as_html_str()), + ) .map(|(a,b)| iter::once(a).chain(iter::once(b))) .flatten() .collect::()