From 76eac13bdee2403db96477d93da78396a5463897 Mon Sep 17 00:00:00 2001 From: James Teh Date: Tue, 8 Feb 2011 12:08:31 +1000 Subject: [PATCH] Strip the UTF-8 BOM from the title of all txt2tags output. --- user_docs/global.t2tconf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/user_docs/global.t2tconf b/user_docs/global.t2tconf index 0ba55bb54..f47695b30 100644 --- a/user_docs/global.t2tconf +++ b/user_docs/global.t2tconf @@ -12,6 +12,12 @@ %!PostProc(html): ^

(.*)

$

\1

%!PostProc(html): ^

(.*)

$

\1

+% Some of our files contain the UTF-8 BOM. +% txt2tags doesn't care about encodings internally, +% so it will just include the BOM at the start of the title. +% Therefore, strip the BOM from the title. +%!PostProc(html): \<(TITLE|H1)\>\xef\xbb\xbf <\1> + % Language neutral defines % We need to do this one as PostProc so it gets converted for the title. %!PostProc: NVDA_VERSION 2011.1 -- 2.11.0