From af599c12b55678276bcda842b705633b0a9d8a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= <john@ankarstrom.se> Date: Tue, 1 Dec 2020 01:48:02 +0100 Subject: mht: Fix arities of inline elements --- mht | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/mht b/mht index f6fb269..2a93b26 100755 --- a/mht +++ b/mht @@ -36,17 +36,31 @@ my %blels = ( # 1.2.3 Inline elements my %inels = ( Au_1 => '<meta name="author" content="\\$1"/>', - Bd_0 => '\\$3<b>\\$1</b>\\$2', + Bd_1 => '<b>\\$1</b>', + Bd_2 => '<b>\\$1</b>\\$2', + Bd_3 => '\\$3<b>\\$1</b>\\$2', br_0 => '<br/>', - Cd_0 => '\\$3<code>\\$1</code>\\$2', + Cd_1 => '<code>\\$1</code>', + Cd_2 => '<code>\\$1</code>\\$2', + Cd_3 => '\\$3<code>\\$1</code>\\$2', Cs_1 => '<meta http-equiv="Content-Type" content="text/html; charset=\\$1"/>', - Em_0 => '\\$3<em>\\$1</em>\\$2', - Hy_0 => '<a href="\\$2">\\$1</a>', - Im_0 => '<img src="\\$1" alt="\\$2"/>', - It_0 => '\\$3<i>\\$1</i>\\$2', - St_0 => '\\$3<strong>\\$1</strong>\\$2', - Tt_0 => '\\$3<tt>\\$1</tt>\\$2', - Ul_0 => '\\$3<u>\\$1</u>\\$2', + Em_1 => '<em>\\$1</em>', + Em_2 => '<em>\\$1</em>\\$2', + Em_3 => '\\$3<em>\\$1</em>\\$2', + Hy_2 => '<a href="\\$2">\\$1</a>', + Im_2 => '<img src="\\$1" alt="\\$2"/>', + It_1 => '<i>\\$1</i>', + It_2 => '<i>\\$1</i>\\$2', + It_3 => '\\$3<i>\\$1</i>\\$2', + St_1 => '<strong>\\$1</strong>', + St_2 => '<strong>\\$1</strong>\\$2', + St_3 => '\\$3<strong>\\$1</strong>\\$2', + Tt_1 => '<tt>\\$1</tt>', + Tt_2 => '<tt>\\$1</tt>\\$2', + Tt_3 => '\\$3<tt>\\$1</tt>\\$2', + Ul_1 => '<u>\\$1</u>', + Ul_2 => '<u>\\$1</u>\\$2', + Ul_3 => '\\$3<u>\\$1</u>\\$2', ); -- cgit v1.2.3