From 2d6d46243962e837cc10bb56ba057b08d62e7ca9 Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Mon, 1 May 2017 16:53:51 +0100 Subject: [PATCH] Remember to escape characters in link targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was a bug introduced by 28fce347ff7cb743a24c77d055279a240888c8ca — it should have updated both places it does this in the function, rather than just one. --- src/output/file_name.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output/file_name.rs b/src/output/file_name.rs index e933c32..e235b9b 100644 --- a/src/output/file_name.rs +++ b/src/output/file_name.rs @@ -61,7 +61,10 @@ impl<'a, 'dir> FileName<'a, 'dir> { } if !target.name.is_empty() { - bits.push(FileName::new(&target, self.colours).style().paint(target.name)); + let target = FileName::new(&target, self.colours); + for bit in target.coloured_file_name() { + bits.push(bit); + } } },