[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Tue, 3 Sep 2024 17:01:19 -0400 (EDT) |
branch: master
commit 47b9e91e02d17359a9ce209901ab674b5b3814f4
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Sep 3 23:00:36 2024 +0200
Use <pre> for @displaymath HTML formatting
* NEWS, tp/Texinfo/Convert/HTML.pm (%css_element_class_styles),
tp/Texinfo/Convert/HTML.pm (_convert_displaymath_command),
tp/Texinfo/XS/convert/convert_html.c (convert_displaymath_command):
use <pre> for @displaymath formatting such that Texinfo source
indentation is kept, in particular for text browsers. Report from
Rudolf Adamkovič..
---
ChangeLog | 11 ++
NEWS | 1 +
tp/Texinfo/Convert/HTML.pm | 20 ++-
tp/Texinfo/XS/convert/convert_html.c | 34 ++--
tp/t/results/coverage/commands_in_math.pl | 16 +-
tp/t/results/coverage/displaymath.pl | 16 +-
tp/t/results/html_tests/mathjax_with_texinfo.pl | 9 +-
.../mathjax_with_texinfo_enable_encoding.pl | 9 +-
.../res_html/index.html | 9 +-
.../html_tests/mathjax_with_texinfo_html_text.pl | 4 +-
.../mathjax_with_texinfo_no_convert_to_latex.pl | 9 +-
tp/t/results/raw/displaymath.pl | 13 +-
.../res_parser/formatting_chm/chapter.html | 109 +++++++------
.../res_parser/formatting_chm/formatting.html | 73 +++++----
.../EPUB/xhtml/chapter.xhtml | 109 +++++++------
.../EPUB/xhtml/formatting.xhtml | 73 +++++----
.../res_parser/formatting_html32/formatting.html | 180 ++++++++++----------
.../formatting_html_no_split/formatting.html | 109 +++++++------
.../formatting_regions/formatting_regions.html | 181 +++++++++++----------
.../res_parser/formatting_xhtml/formatting.html | 181 +++++++++++----------
.../formatting_enable_encoding/formatting.html | 181 +++++++++++----------
.../EPUB/xhtml/chapter.xhtml | 109 +++++++------
.../EPUB/xhtml/formatting.xhtml | 73 +++++----
.../res_parser/formatting_exotic/chapter.html | 109 +++++++------
.../res_parser/formatting_fr/formatting.html | 181 +++++++++++----------
.../res_parser/formatting_fr_icons/formatting.html | 181 +++++++++++----------
.../formatting_inline_css/formatting.html | 180 ++++++++++----------
.../res_parser/formatting_mathjax/formatting.html | 181 +++++++++++----------
.../formatting_numerical_entities/formatting.html | 181 +++++++++++----------
.../formatting_sort_element_counts/formatting.html | 109 +++++++------
.../formatting_texi2html/formatting.html | 181 +++++++++++----------
.../formatting_texi2html_nodes/chapter.html | 109 +++++++------
.../formatting_texi2html_nodes/index.html | 73 +++++----
.../formatting_weird_quotes/formatting.html | 181 +++++++++++----------
.../res_parser/tex_gdef_mathjax/tex_gdef.html | 5 +-
tp/tests/tex_html/res_parser/tex_mathjax/tex.html | 5 +-
tp/tests/tex_html/res_parser/tex_notex/tex.html | 5 +-
37 files changed, 1638 insertions(+), 1572 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f85fea1ccd..b1a2a3ce14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2024-09-03 Patrice Dumas <pertusus@free.fr>
+
+ Use <pre> for @displaymath HTML formatting
+
+ * NEWS, tp/Texinfo/Convert/HTML.pm (%css_element_class_styles),
+ tp/Texinfo/Convert/HTML.pm (_convert_displaymath_command),
+ tp/Texinfo/XS/convert/convert_html.c (convert_displaymath_command):
+ use <pre> for @displaymath formatting such that Texinfo source
+ indentation is kept, in particular for text browsers. Report from
+ Rudolf Adamkovič..
+
2024-09-03 Gavin Smith <gavinsmith0123@gmail.com>
Update FSF address
diff --git a/NEWS b/NEWS
index af60653b21..60af70befd 100644
--- a/NEWS
+++ b/NEWS
@@ -56,6 +56,7 @@ See the manual for detailed information.
. HTML:
. Do not remove .inf or .info at the end of manual name for
cross-references to external nodes anymore.
+ . Use <pre> instead of <div><em> for displaymath formatting.
* info
. check for init file under ~/.config/texinfo/infokey before checking
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index e6fd8813b2..214e9984b1 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -2960,6 +2960,7 @@ my %css_element_class_styles = (
'pre.menu-preformatted' => 'font-family: serif',
'a.summary-letter-printindex' => 'text-decoration: none',
'pre.display-preformatted' => 'font-family: inherit',
+ 'pre.displaymath' => 'font-style: italic; font-family:
serif',
'span.program-in-footer' => 'font-size: smaller', # used with
PROGRAM_NAME_IN_FOOTER
'span.sansserif' => 'font-family: sans-serif; font-weight: normal',
'span.r' => 'font-family: initial; font-weight: normal;
font-style: normal',
@@ -5306,16 +5307,23 @@ sub _convert_displaymath_command($$$$$)
}
my $result = '';
- $result .= $self->html_attribute_class('div', [$cmdname]).'>';
+ my $pre_classes = [$cmdname];
+
+ my $use_mathjax = ($self->get_conf('HTML_MATH')
+ and $self->get_conf('HTML_MATH') eq 'mathjax');
+
+ if ($use_mathjax) {
+ $self->register_file_information('mathjax', 1);
+ push @$pre_classes, 'tex2jax_process';
+ }
+ $result .= $self->html_attribute_class('pre', $pre_classes).'>';
if ($self->get_conf('HTML_MATH')
and $self->get_conf('HTML_MATH') eq 'mathjax') {
- $self->register_file_information('mathjax', 1);
- $result .= $self->html_attribute_class('em', ['tex2jax_process']).'>'
- ."\\[$content\\]".'</em>';
+ $result .= "\\[$content\\]";
} else {
- $result .= $self->html_attribute_class('em').'>'."$content".'</em>';
+ $result .= $content;
}
- $result .= '</div>';
+ $result .= '</pre>';
return $result;
}
diff --git a/tp/Texinfo/XS/convert/convert_html.c
b/tp/Texinfo/XS/convert/convert_html.c
index 37394c1a88..6f7c8757f9 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -10746,42 +10746,40 @@ convert_displaymath_command (CONVERTER *self, const
enum command_id cmd,
{
char *attribute_class;
STRING_LIST *classes;
+ int use_mathjax;
if (html_in_string (self))
{
if (content)
text_append (result, content);
+ return;
}
+ use_mathjax = (self->conf->HTML_MATH.o.string
+ && !strcmp (self->conf->HTML_MATH.o.string, "mathjax"));
+
classes = new_string_list ();
add_string (builtin_command_name (cmd), classes);
- attribute_class = html_attribute_class (self, "div", classes);
- text_append (result, attribute_class);
- free (attribute_class);
- text_append_n (result, ">", 1);
- clear_strings_list (classes);
-
- if (self->conf->HTML_MATH.o.string
- && !strcmp (self->conf->HTML_MATH.o.string, "mathjax"))
+ if (use_mathjax)
{
html_register_file_information (self, "mathjax", 1);
add_string ("tex2jax_process", classes);
- attribute_class = html_attribute_class (self, "em", classes);
- text_append (result, attribute_class);
- text_printf (result, ">\\[%s\\]</em>", content);
- goto out;
}
- attribute_class = html_attribute_class (self, "em", 0);
+ attribute_class = html_attribute_class (self, "pre", classes);
text_append (result, attribute_class);
- text_printf (result, ">%s</em>", content);
-
- out:
- text_append_n (result, "</div>", 6);
+ free (attribute_class);
+ text_append_n (result, ">", 1);
destroy_strings_list (classes);
- free (attribute_class);
+
+ if (use_mathjax)
+ text_printf (result, "\\[%s\\]", content);
+ else
+ text_printf (result, "%s", content);
+
+ text_append_n (result, "</pre>", 6);
}
void
diff --git a/tp/t/results/coverage/commands_in_math.pl
b/tp/t/results/coverage/commands_in_math.pl
index d56304a1aa..34342c35c6 100644
--- a/tp/t/results/coverage/commands_in_math.pl
+++ b/tp/t/results/coverage/commands_in_math.pl
@@ -1822,30 +1822,30 @@ error→ ↦ − ⋆ ⊣ ⇒
$result_converted{'html_text'}->{'commands_in_math'} = '
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----\'\'</strong> aa<!-- /@w -->
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----\'\'</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----\'<!-- /@w -->\'
-</em></div>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é ı ȷ Ḕ
+</pre>
+<pre class="displaymath">ü Ü ñ â é ō
ì é ı ȷ Ḕ
ł Ḉ Ḉ ç a̋ ȧ å a͡
ă a̲ ạ ǎ ą a<sup class="sup">h</sup><sub
class="sub">l</sub>
! ? . @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
TeX LaTeX • © ... ... ≡
error→ → − ∗ -| ⇒
å Å æ œ Æ Œ ø Ø ß
ł Ł Ð
Þ ð þ ¡ ¿ £
® ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› ° € → ≤ ≥
-</em></div>';
+</pre>';
$result_converted{'xml'}->{'commands_in_math'} = '
diff --git a/tp/t/results/coverage/displaymath.pl
b/tp/t/results/coverage/displaymath.pl
index 06149484eb..60dd44fbdd 100644
--- a/tp/t/results/coverage/displaymath.pl
+++ b/tp/t/results/coverage/displaymath.pl
@@ -524,17 +524,17 @@ a/2
$result_converted{'html_text'}->{'displaymath'} = '<p>Simple
-</p><div class="displaymath"><em>--{x^i}\\over{\\tan y}
-</em></div>
+</p><pre class="displaymath">--{x^i}\\over{\\tan y}
+</pre>
<p>Math with @-command
-</p><div class="displaymath"><em><code class="code">math code</code> a < b
\\sum<sub class="sub">i</sub> q<sup class="sup">2</sup>
-</em></div>
+</p><pre class="displaymath"><code class="code">math code</code> a < b
\\sum<sub class="sub">i</sub> q<sup class="sup">2</sup>
+</pre>
<p>Complex
-</p><div class="displaymath"><em> \\underline{<code class="code">math \\hbox{
code }</code>} \\i \\sum_{i}{\\underline{f}}
-</em></div>
+</p><pre class="displaymath"> \\underline{<code class="code">math \\hbox{ code
}</code>} \\i \\sum_{i}{\\underline{f}}
+</pre>
<p>With a comment
-</p><div class="displaymath"><em>a/2
-</em></div>';
+</p><pre class="displaymath">a/2
+</pre>';
$result_converted{'xml'}->{'displaymath'} = '<para>Simple
diff --git a/tp/t/results/html_tests/mathjax_with_texinfo.pl
b/tp/t/results/html_tests/mathjax_with_texinfo.pl
index b04903151a..649ebab570 100644
--- a/tp/t/results/html_tests/mathjax_with_texinfo.pl
+++ b/tp/t/results/html_tests/mathjax_with_texinfo.pl
@@ -267,6 +267,11 @@ $result_converted{'html'}->{'mathjax_with_texinfo'} =
'<!DOCTYPE html>
<meta name="distribution" content="global">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<style type="text/css">
+<!--
+pre.displaymath {font-style: italic; font-family: serif}
+-->
+</style>
<script type=\'text/javascript\'>
MathJax = {
@@ -282,8 +287,8 @@ MathJax = {
</head>
<body lang="en" class="tex2jax_ignore">
-<div class="displaymath"><em class="tex2jax_process">\\[a^{b -
\\frac{\\xi}{phi \\copyright{}}} \\imath{}
-\\]</em></div>
+<pre class="displaymath tex2jax_process">\\[a^{b - \\frac{\\xi}{phi
\\copyright{}}} \\imath{}
+\\]</pre>
<p>Some <em class="math tex2jax_process">\\(a - b \\geq{}
\\mathord{\\text{\\AA{}}} \\hat{e}\\)</em>.
</p>
diff --git a/tp/t/results/html_tests/mathjax_with_texinfo_enable_encoding.pl
b/tp/t/results/html_tests/mathjax_with_texinfo_enable_encoding.pl
index 34062eabd8..2984cd1cea 100644
--- a/tp/t/results/html_tests/mathjax_with_texinfo_enable_encoding.pl
+++ b/tp/t/results/html_tests/mathjax_with_texinfo_enable_encoding.pl
@@ -279,6 +279,11 @@
$result_converted{'html'}->{'mathjax_with_texinfo_enable_encoding'} = '<!DOCTYPE
<meta name="distribution" content="global">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<style type="text/css">
+<!--
+pre.displaymath {font-style: italic; font-family: serif}
+-->
+</style>
<script type=\'text/javascript\'>
MathJax = {
@@ -294,8 +299,8 @@ MathJax = {
</head>
<body lang="en" class="tex2jax_ignore">
-<div class="displaymath"><em class="tex2jax_process">\\[a^{b -
\\frac{\\xi}{phi \\copyright{}}} ı
-\\]</em></div>
+<pre class="displaymath tex2jax_process">\\[a^{b - \\frac{\\xi}{phi
\\copyright{}}} ı
+\\]</pre>
<p>Some <em class="math tex2jax_process">\\(a - b \\geq{} Å ê\\)</em>.
</p>
diff --git
a/tp/t/results/html_tests/mathjax_with_texinfo_html_file/res_html/index.html
b/tp/t/results/html_tests/mathjax_with_texinfo_html_file/res_html/index.html
index f8ba95345a..99079b7669 100644
--- a/tp/t/results/html_tests/mathjax_with_texinfo_html_file/res_html/index.html
+++ b/tp/t/results/html_tests/mathjax_with_texinfo_html_file/res_html/index.html
@@ -11,6 +11,11 @@
<meta name="distribution" content="global">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<style type="text/css">
+<!--
+pre.displaymath {font-style: italic; font-family: serif}
+-->
+</style>
<script type='text/javascript'>
MathJax = {
@@ -26,8 +31,8 @@ MathJax = {
</head>
<body lang="en" class="tex2jax_ignore">
-<div class="displaymath"><em class="tex2jax_process">\[a^{b - \frac{\xi}{phi
\copyright{}}} \imath{}
-\]</em></div>
+<pre class="displaymath tex2jax_process">\[a^{b - \frac{\xi}{phi
\copyright{}}} \imath{}
+\]</pre>
<p>Some <em class="math tex2jax_process">\(a - b \geq{} \mathord{\text{\AA{}}}
\hat{e}\)</em>.
</p>
diff --git a/tp/t/results/html_tests/mathjax_with_texinfo_html_text.pl
b/tp/t/results/html_tests/mathjax_with_texinfo_html_text.pl
index 9a8a910140..14b0bcc263 100644
--- a/tp/t/results/html_tests/mathjax_with_texinfo_html_text.pl
+++ b/tp/t/results/html_tests/mathjax_with_texinfo_html_text.pl
@@ -254,8 +254,8 @@ $result_floats{'mathjax_with_texinfo_html_text'} = {};
-$result_converted{'html_text'}->{'mathjax_with_texinfo_html_text'} = '<div
class="displaymath"><em class="tex2jax_process">\\[a<sup class="sup">b -
\\frac{\\xi}{phi ©}</sup> ı
-\\]</em></div>
+$result_converted{'html_text'}->{'mathjax_with_texinfo_html_text'} = '<pre
class="displaymath tex2jax_process">\\[a<sup class="sup">b - \\frac{\\xi}{phi
©}</sup> ı
+\\]</pre>
<p>Some <em class="math tex2jax_process">\\(a − b ≥ Å
ê\\)</em>.
</p>';
diff --git
a/tp/t/results/html_tests/mathjax_with_texinfo_no_convert_to_latex.pl
b/tp/t/results/html_tests/mathjax_with_texinfo_no_convert_to_latex.pl
index dbf20be457..4f5be8870c 100644
--- a/tp/t/results/html_tests/mathjax_with_texinfo_no_convert_to_latex.pl
+++ b/tp/t/results/html_tests/mathjax_with_texinfo_no_convert_to_latex.pl
@@ -267,6 +267,11 @@
$result_converted{'html'}->{'mathjax_with_texinfo_no_convert_to_latex'} = '<!DOC
<meta name="distribution" content="global">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<style type="text/css">
+<!--
+pre.displaymath {font-style: italic; font-family: serif}
+-->
+</style>
<script type=\'text/javascript\'>
MathJax = {
@@ -282,8 +287,8 @@ MathJax = {
</head>
<body lang="en" class="tex2jax_ignore">
-<div class="displaymath"><em class="tex2jax_process">\\[a<sup class="sup">b -
\\frac{\\xi}{phi ©}</sup> ı
-\\]</em></div>
+<pre class="displaymath tex2jax_process">\\[a<sup class="sup">b -
\\frac{\\xi}{phi ©}</sup> ı
+\\]</pre>
<p>Some <em class="math tex2jax_process">\\(a − b ≥ Å
ê\\)</em>.
</p>
diff --git a/tp/t/results/raw/displaymath.pl b/tp/t/results/raw/displaymath.pl
index 0c05a77ee2..e59ec17593 100644
--- a/tp/t/results/raw/displaymath.pl
+++ b/tp/t/results/raw/displaymath.pl
@@ -240,6 +240,11 @@ $result_converted{'html'}->{'displaymath'} = '<!DOCTYPE
html>
<meta name="distribution" content="global">
<meta name="viewport" content="width=device-width,initial-scale=1">
+<style type="text/css">
+<!--
+pre.displaymath {font-style: italic; font-family: serif}
+-->
+</style>
<script type=\'text/javascript\'>
MathJax = {
@@ -255,11 +260,11 @@ MathJax = {
</head>
<body lang="en" class="tex2jax_ignore">
-<div class="displaymath"><em class="tex2jax_process">\\[\\int_D
({\\nabla\\cdot} F)dV=\\int_{\\partial D} F\\cdot ndS
-\\]</em></div>
+<pre class="displaymath tex2jax_process">\\[\\int_D ({\\nabla\\cdot}
F)dV=\\int_{\\partial D} F\\cdot ndS
+\\]</pre>
<p>before
-</p><div class="displaymath"><em class="tex2jax_process">\\[\\int_D
({\\nabla\\cdot} F)dV=\\int_{\\partial D} F\\cdot ndS
-\\]</em></div><p>after
+</p><pre class="displaymath tex2jax_process">\\[\\int_D ({\\nabla\\cdot}
F)dV=\\int_{\\partial D} F\\cdot ndS
+\\]</pre><p>after
</p>
<a href="js_licenses.html" rel="jslicense"><small>JavaScript license
information</small></a>
diff --git a/tp/tests/coverage/res_parser/formatting_chm/chapter.html
b/tp/tests/coverage/res_parser/formatting_chm/chapter.html
index 3b794ec841..42bd87704c 100644
--- a/tp/tests/coverage/res_parser/formatting_chm/chapter.html
+++ b/tp/tests/coverage/res_parser/formatting_chm/chapter.html
@@ -888,6 +888,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1148,36 +1149,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1918,15 +1919,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2252,36 +2253,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3022,15 +3023,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3367,41 +3368,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -4269,17 +4270,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/coverage/res_parser/formatting_chm/formatting.html
b/tp/tests/coverage/res_parser/formatting_chm/formatting.html
index 3f080b7019..a520a528ab 100644
--- a/tp/tests/coverage/res_parser/formatting_chm/formatting.html
+++ b/tp/tests/coverage/res_parser/formatting_chm/formatting.html
@@ -886,6 +886,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1131,36 +1132,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1902,15 +1903,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2237,36 +2238,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3007,15 +3008,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
diff --git
a/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
b/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
index cb240e693c..8b3eaca800 100644
---
a/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
+++
b/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/chapter.xhtml
@@ -888,6 +888,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1148,36 +1149,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -1918,15 +1919,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2252,36 +2253,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -3022,15 +3023,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3367,41 +3368,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -4269,17 +4270,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git
a/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
b/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
index 8a4c78bd0f..17d4869f00 100644
---
a/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
+++
b/tp/tests/coverage/res_parser/formatting_epub/formatting_epub_package/EPUB/xhtml/formatting.xhtml
@@ -886,6 +886,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1131,36 +1132,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -1902,15 +1903,15 @@ html ''
<strong class="author">author</strong><br/>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2237,36 +2238,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -3007,15 +3008,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
diff --git a/tp/tests/coverage/res_parser/formatting_html32/formatting.html
b/tp/tests/coverage/res_parser/formatting_html32/formatting.html
index d9fd893147..b52d297359 100644
--- a/tp/tests/coverage/res_parser/formatting_html32/formatting.html
+++ b/tp/tests/coverage/res_parser/formatting_html32/formatting.html
@@ -1110,36 +1110,36 @@ After clickstyle =>
<code>@clicksequence{click @click{} A}</code> click => A
</p>
-<div><em>disp--laymath
+<pre>disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup>-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2</sup>
-</em></div>
-<div><em><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div><em>ı ȷ
+</pre>
+<pre>ı ȷ
ł ç
a̲ ạ ą a<sup>h</sup><sub>l</sub>
! @ } {
a sunny day
-</em></div>
-<div><em>->
+</pre>
+<pre>->
u
* © ... ... ==
error-> ==> - -| =>
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div><em>" "
+</pre>
+<pre>" "
` ' ,, , <<
>> << >> <
> Euro -> <= >=
-</em></div>
-<div><em><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
-</em></div>
+</pre>
+<pre><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
+</pre>
<p><kbd>default kbdinputstyle</kbd>
</p><dl>
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd>vtable
i--tem default kbdinputstyle</kbd></dt>
@@ -1855,15 +1855,15 @@ html ''
<strong>author</strong><br>
-<div><em>ü Ü ñ â é ō ì é
Ḕ
+<pre>ü Ü ñ â é ō ì é
Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div><em>TeX LaTeX -!- å ® °
-</em></div>
-<div><em><tt>t</tt>
-</em></div>
+</pre>
+<pre>TeX LaTeX -!- å ® °
+</pre>
+<pre><tt>t</tt>
+</pre>
<ul>
<li> e-mph item
</li></ul>
@@ -2190,36 +2190,36 @@ After clickstyle =>
<code>@clicksequence{click @click{} A}</code> click => A
</p>
-<div><em>disp--laymath
+<pre>disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup>-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2</sup>
-</em></div>
-<div><em><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div><em>ı ȷ
+</pre>
+<pre>ı ȷ
ł ç
a̲ ạ ą a<sup>h</sup><sub>l</sub>
! @ } {
a sunny day
-</em></div>
-<div><em>->
+</pre>
+<pre>->
u
* © ... ... ==
error-> ==> - -| =>
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div><em>" "
+</pre>
+<pre>" "
` ' ,, , <<
>> << >> <
> Euro -> <= >=
-</em></div>
-<div><em><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
-</em></div>
+</pre>
+<pre><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
+</pre>
<p><kbd>default kbdinputstyle</kbd>
</p><dl>
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd>vtable
i--tem default kbdinputstyle</kbd></dt>
@@ -2934,15 +2934,15 @@ html ''
</p>
-<div><em>ü Ü ñ â é ō ì é
Ḕ
+<pre>ü Ü ñ â é ō ì é
Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div><em>TeX LaTeX -!- å ® °
-</em></div>
-<div><em><tt>t</tt>
-</em></div>
+</pre>
+<pre>TeX LaTeX -!- å ® °
+</pre>
+<pre><tt>t</tt>
+</pre>
<ul>
<li> e-mph item
</li></ul>
@@ -3338,36 +3338,36 @@ After clickstyle =>
<code>@clicksequence{click @click{} A}</code> click => A
</p>
-<div><em>disp--laymath
+<pre>disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup>-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2</sup>
-</em></div>
-<div><em><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div><em>ı ȷ
+</pre>
+<pre>ı ȷ
ł ç
a̲ ạ ą a<sup>h</sup><sub>l</sub>
! @ } {
a sunny day
-</em></div>
-<div><em>->
+</pre>
+<pre>->
u
* © ... ... ==
error-> ==> - -| =>
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div><em>" "
+</pre>
+<pre>" "
` ' ,, , <<
>> << >> <
> Euro -> <= >=
-</em></div>
-<div><em><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
-</em></div>
+</pre>
+<pre><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
+</pre>
<p><kbd>default kbdinputstyle</kbd>
</p><dl>
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd>vtable
i--tem default kbdinputstyle</kbd></dt>
@@ -4082,15 +4082,15 @@ html ''
</p>
-<div><em>ü Ü ñ â é ō ì é
Ḕ
+<pre>ü Ü ñ â é ō ì é
Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div><em>TeX LaTeX -!- å ® °
-</em></div>
-<div><em><tt>t</tt>
-</em></div>
+</pre>
+<pre>TeX LaTeX -!- å ® °
+</pre>
+<pre><tt>t</tt>
+</pre>
<ul>
<li> e-mph item
</li></ul>
@@ -4416,36 +4416,36 @@ After clickstyle =>
<code>@clicksequence{click @click{} A}</code> click => A
</p>
-<div><em>disp--laymath
+<pre>disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup>-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2</sup>
-</em></div>
-<div><em><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div><em>ı ȷ
+</pre>
+<pre>ı ȷ
ł ç
a̲ ạ ą a<sup>h</sup><sub>l</sub>
! @ } {
a sunny day
-</em></div>
-<div><em>->
+</pre>
+<pre>->
u
* © ... ... ==
error-> ==> - -| =>
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div><em>" "
+</pre>
+<pre>" "
` ' ,, , <<
>> << >> <
> Euro -> <= >=
-</em></div>
-<div><em><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
-</em></div>
+</pre>
+<pre><b>b</b> <i>i</i> r <small>SC</small> sansserif <i>slanted</i>
+</pre>
<p><kbd>default kbdinputstyle</kbd>
</p><dl>
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd>vtable
i--tem default kbdinputstyle</kbd></dt>
@@ -5160,15 +5160,15 @@ html ''
</p>
-<div><em>ü Ü ñ â é ō ì é
Ḕ
+<pre>ü Ü ñ â é ō ì é
Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div><em>TeX LaTeX -!- å ® °
-</em></div>
-<div><em><tt>t</tt>
-</em></div>
+</pre>
+<pre>TeX LaTeX -!- å ® °
+</pre>
+<pre><tt>t</tt>
+</pre>
<ul>
<li> e-mph item
</li></ul>
@@ -5504,41 +5504,41 @@ After clickstyle =>
<code>@clicksequence{click @click{} A}</code> click => A
-</pre><div><em>disp--laymath
+</pre><pre>disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup>-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2</sup>
-</em></div><pre>
+</pre><pre>
-</pre><div><em><strong>``simple-double--three---four----''</strong> aa<!-- /@w
-->
+</pre><pre><strong>``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre>
+</pre><pre>
-</pre><div><em>ı ȷ
+</pre><pre>ı ȷ
ł ç
a̲ ạ ą a<sup>h</sup><sub>l</sub>
! @ } {
a sunny day
-</em></div><pre>
+</pre><pre>
-</pre><div><em>->
+</pre><pre>->
u
* © ... ... ==
error-> ==> - -| =>
Å æ œ Æ Œ ø Ø ß ł Ł
Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre>
+</pre><pre>
-</pre><div><em>" "
+</pre><pre>" "
` ' ,, , <<
>> << >> <
> Euro -> <= >=
-</em></div><pre>
+</pre><pre>
-</pre><div><em><b>b</b> <i>i</i> r SC sansserif <i>slanted</i>
-</em></div><pre>
+</pre><pre><b>b</b> <i>i</i> r SC sansserif <i>slanted</i>
+</pre><pre>
<kbd>default kbdinputstyle</kbd>
</pre><dl>
@@ -6380,17 +6380,17 @@ Invalid use of @':
-</pre><div><em>ü Ü ñ â é ō ì
é Ḕ
+</pre><pre>ü Ü ñ â é ō ì é
Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre>
+</pre><pre>
-</pre><div><em>TeX LaTeX -!- å ® °
-</em></div><pre>
+</pre><pre>TeX LaTeX -!- å ® °
+</pre><pre>
-</pre><div><em><tt>t</tt>
-</em></div><pre>
+</pre><pre><tt>t</tt>
+</pre><pre>
</pre><ul>
<li> <pre>e--mph item
diff --git
a/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
b/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
index d1227321ec..61235b7226 100644
--- a/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
+++ b/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
@@ -887,6 +887,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1201,36 +1202,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1971,15 +1972,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2305,36 +2306,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3075,15 +3076,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3420,41 +3421,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -4322,17 +4323,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git
a/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
b/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
index 4ade98762c..b8b8623f7b 100644
--- a/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
+++ b/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
@@ -887,6 +887,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1138,36 +1139,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1909,15 +1910,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2243,36 +2244,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3013,15 +3014,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3397,36 +3398,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4167,15 +4168,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4511,41 +4512,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -5413,17 +5414,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
@@ -5760,36 +5761,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -6530,15 +6531,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
diff --git a/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
b/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
index 7933232bf4..2269aab864 100644
--- a/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
+++ b/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
@@ -889,6 +889,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1144,36 +1145,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1915,15 +1916,15 @@ html ''
<strong class="author">author</strong><br/>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2250,36 +2251,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3020,15 +3021,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3420,36 +3421,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4190,15 +4191,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4524,36 +4525,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5294,15 +5295,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5639,41 +5640,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6541,17 +6542,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git
a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
index db0d4944f5..fef269c5ee 100644
--- a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
@@ -889,6 +889,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
pre.menu-entry-description-preformatted {font-family: serif; display: inline}
@@ -1150,36 +1151,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © … ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1921,15 +1922,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2256,36 +2257,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © … ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3026,15 +3027,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3436,36 +3437,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © … ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4206,15 +4207,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4540,36 +4541,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © … ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle"> ¶</a></span></dt>
@@ -5310,15 +5311,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5655,41 +5656,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © … ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6557,17 +6558,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
index 12c757481e..400182ad3a 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/chapter.xhtml
@@ -888,6 +888,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1149,36 +1150,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -1919,15 +1920,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2253,36 +2254,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -3023,15 +3024,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3368,41 +3369,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -4270,17 +4271,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
index 9c2351fb82..0814395e48 100644
---
a/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
+++
b/tp/tests/layout/res_parser/formatting_epub_nodes/formatting_epub_package/EPUB/xhtml/formatting.xhtml
@@ -886,6 +886,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1133,36 +1134,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -1904,15 +1905,15 @@ html ''
<strong class="author">author</strong><br/>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2239,36 +2240,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd></dt>
@@ -3009,15 +3010,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
diff --git a/tp/tests/layout/res_parser/formatting_exotic/chapter.html
b/tp/tests/layout/res_parser/formatting_exotic/chapter.html
index 928c102c1a..3c782ddde3 100644
--- a/tp/tests/layout/res_parser/formatting_exotic/chapter.html
+++ b/tp/tests/layout/res_parser/formatting_exotic/chapter.html
@@ -882,6 +882,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.program-in-footer {font-size: smaller}
span.r {font-family: initial; font-weight: normal; font-style: normal}
@@ -1161,36 +1162,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1931,15 +1932,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2265,36 +2266,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3035,15 +3036,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3380,41 +3381,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -4278,17 +4279,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/layout/res_parser/formatting_fr/formatting.html
b/tp/tests/layout/res_parser/formatting_fr/formatting.html
index 4339218d02..09bdb96990 100644
--- a/tp/tests/layout/res_parser/formatting_fr/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_fr/formatting.html
@@ -884,6 +884,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
pre.menu-entry-description-preformatted {font-family: serif; display: inline}
@@ -1146,36 +1147,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1917,15 +1918,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2252,36 +2253,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3022,15 +3023,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3416,36 +3417,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4186,15 +4187,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4520,36 +4521,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5290,15 +5291,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5635,41 +5636,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6537,17 +6538,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
b/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
index a21889dd6c..867f7a3d2a 100644
--- a/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
@@ -884,6 +884,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
pre.menu-entry-description-preformatted {font-family: serif; display: inline}
@@ -1146,36 +1147,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1917,15 +1918,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2252,36 +2253,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3022,15 +3023,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3416,36 +3417,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4186,15 +4187,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4520,36 +4521,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5290,15 +5291,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5635,41 +5636,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
erreur→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6537,17 +6538,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
b/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
index 0c8470c7d3..bca0390d81 100644
--- a/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
@@ -1110,36 +1110,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath" style="font-style: italic; font-family:
serif">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif"><strong class="strong">``simple-double--three---four----''</strong>
aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r" style="font-family: initial; font-weight: normal; font-style:
normal">r</span> <small class="sc">SC</small> <span class="sansserif"
style="font-family: sans-serif; font-weight: normal">sansserif</span> <i
class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><b
class="b">b</b> <i class="i">i</i> <span class="r" style="font-family: initial;
font-weight: normal; font-style: normal">r</span> <small class="sc">SC</small>
<span class="sansserif" style="font-family: sans-serif; font-weight:
normal">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd" style="font-style: oblique">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd" style="font-style: oblique">vtable i--tem default
kbdinputstyle</kbd><a class="copiable-link" style="visibility: hidden;
text-decoration: none; line-height: 0em"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1881,15 +1881,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath" style="font-style: italic; font-family: serif">ü
Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">TeX
LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><code
class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2216,36 +2216,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath" style="font-style: italic; font-family:
serif">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif"><strong class="strong">``simple-double--three---four----''</strong>
aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r" style="font-family: initial; font-weight: normal; font-style:
normal">r</span> <small class="sc">SC</small> <span class="sansserif"
style="font-family: sans-serif; font-weight: normal">sansserif</span> <i
class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><b
class="b">b</b> <i class="i">i</i> <span class="r" style="font-family: initial;
font-weight: normal; font-style: normal">r</span> <small class="sc">SC</small>
<span class="sansserif" style="font-family: sans-serif; font-weight:
normal">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd" style="font-style: oblique">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd" style="font-style: oblique">vtable i--tem default
kbdinputstyle</kbd><a class="copiable-link" style="visibility: hidden;
text-decoration: none; line-height: 0em"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -2986,15 +2986,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath" style="font-style: italic; font-family: serif">ü
Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">TeX
LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><code
class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3365,36 +3365,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath" style="font-style: italic; font-family:
serif">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif"><strong class="strong">``simple-double--three---four----''</strong>
aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r" style="font-family: initial; font-weight: normal; font-style:
normal">r</span> <small class="sc">SC</small> <span class="sansserif"
style="font-family: sans-serif; font-weight: normal">sansserif</span> <i
class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><b
class="b">b</b> <i class="i">i</i> <span class="r" style="font-family: initial;
font-weight: normal; font-style: normal">r</span> <small class="sc">SC</small>
<span class="sansserif" style="font-family: sans-serif; font-weight:
normal">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd" style="font-style: oblique">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd" style="font-style: oblique">vtable i--tem default
kbdinputstyle</kbd><a class="copiable-link" style="visibility: hidden;
text-decoration: none; line-height: 0em"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4135,15 +4135,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath" style="font-style: italic; font-family: serif">ü
Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">TeX
LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><code
class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4469,36 +4469,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath" style="font-style: italic; font-family:
serif">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif"><strong class="strong">``simple-double--three---four----''</strong>
aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family:
serif">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r" style="font-family: initial; font-weight: normal; font-style:
normal">r</span> <small class="sc">SC</small> <span class="sansserif"
style="font-family: sans-serif; font-weight: normal">sansserif</span> <i
class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><b
class="b">b</b> <i class="i">i</i> <span class="r" style="font-family: initial;
font-weight: normal; font-style: normal">r</span> <small class="sc">SC</small>
<span class="sansserif" style="font-family: sans-serif; font-weight:
normal">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd" style="font-style: oblique">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd" style="font-style: oblique">vtable i--tem default
kbdinputstyle</kbd><a class="copiable-link" style="visibility: hidden;
text-decoration: none; line-height: 0em"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5239,15 +5239,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath" style="font-style: italic; font-family: serif">ü
Ü ñ â é ō ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif">TeX
LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath" style="font-style: italic; font-family: serif"><code
class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5584,41 +5584,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif"><strong class="strong">``simple-double--three---four----''</strong>
aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r" style="font-family: initial; font-weight: normal; font-style:
normal">r</span> <span class="sc">SC</span> <span class="sansserif"
style="font-family: sans-serif; font-weight: normal">sansserif</span> <i
class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif"><b class="b">b</b> <i class="i">i</i> <span class="r"
style="font-family: initial; font-weight: normal; font-style: normal">r</span>
<span class="sc">SC</span> <span class="sansserif" style="font-family:
sans-serif; font-weight: normal">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd" style="font-style: oblique">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6486,17 +6486,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif">ü Ü ñ â é ō ì é
Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath" style="font-style: italic; font-family:
serif"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
index 77e0be8fc1..d9f1cd03da 100644
--- a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
@@ -888,6 +888,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1151,34 +1152,34 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em class="tex2jax_process">\[disp--laymath
+<pre class="displaymath tex2jax_process">\[disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2}
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\imath{} \jmath{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\imath{} \jmath{}
\mathord{\text{\l{}}} \textsl{\c{c}}
\textsl{\b{a}} \textsl{\d{a}} \textsl{\k{a}} a^{h}_{l}
\ {}\ {} \ {}\-{} ! @ \} \{
\today{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\rightarrow{}
u
\bullet{} \copyright{} \dots{} \dots{} \equiv{}
\fbox{error} \mapsto{} - \dashv{} \Rightarrow{}
\mathord{\text{\AA{}}} \mathord{\text{\ae{}}} \mathord{\text{\oe{}}}
\mathord{\text{\AE{}}} \mathord{\text{\OE{}}} \mathord{\text{\o{}}}
\mathord{\text{\O{}}} \mathord{\text{\ss{}}} \mathord{\text{\l{}}}
\mathord{\text{\L{}}} \mathord{\text{\DH{}}}
\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}}
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}}
\mathsterling{}
\mathord{\text{\textordfeminine{}}} \mathord{\text{\textordmasculine{}}} ,
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}}
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}}
\mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
\mathord{\text{\guilsinglright{}}} \euro{} \rightarrow{} \leq{} \geq{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i}
\mathrm{r} sc \mathsf{sansserif} \mathit{slanted}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathbf{b} \mathit{i} \mathrm{r} sc
\mathsf{sansserif} \mathit{slanted}
+\]</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1920,15 +1921,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U}
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
+<pre class="displaymath tex2jax_process">\[\ddot{u} \ddot{U} \tilde{n} \hat{a}
\acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
\textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\H{a}} \dot{a} \mathring{a}
\textsl{\t{a}}
\breve{a} \check{a}
? .
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathtt{t}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathtt{t}
+\]</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2255,34 +2256,34 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em class="tex2jax_process">\[disp--laymath
+<pre class="displaymath tex2jax_process">\[disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2}
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\imath{} \jmath{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\imath{} \jmath{}
\mathord{\text{\l{}}} \textsl{\c{c}}
\textsl{\b{a}} \textsl{\d{a}} \textsl{\k{a}} a^{h}_{l}
\ {}\ {} \ {}\-{} ! @ \} \{
\today{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\rightarrow{}
u
\bullet{} \copyright{} \dots{} \dots{} \equiv{}
\fbox{error} \mapsto{} - \dashv{} \Rightarrow{}
\mathord{\text{\AA{}}} \mathord{\text{\ae{}}} \mathord{\text{\oe{}}}
\mathord{\text{\AE{}}} \mathord{\text{\OE{}}} \mathord{\text{\o{}}}
\mathord{\text{\O{}}} \mathord{\text{\ss{}}} \mathord{\text{\l{}}}
\mathord{\text{\L{}}} \mathord{\text{\DH{}}}
\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}}
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}}
\mathsterling{}
\mathord{\text{\textordfeminine{}}} \mathord{\text{\textordmasculine{}}} ,
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}}
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}}
\mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
\mathord{\text{\guilsinglright{}}} \euro{} \rightarrow{} \leq{} \geq{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i}
\mathrm{r} sc \mathsf{sansserif} \mathit{slanted}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathbf{b} \mathit{i} \mathrm{r} sc
\mathsf{sansserif} \mathit{slanted}
+\]</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3023,15 +3024,15 @@ html ''
</p>
-<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U}
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
+<pre class="displaymath tex2jax_process">\[\ddot{u} \ddot{U} \tilde{n} \hat{a}
\acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
\textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\H{a}} \dot{a} \mathring{a}
\textsl{\t{a}}
\breve{a} \check{a}
? .
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathtt{t}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathtt{t}
+\]</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3423,34 +3424,34 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em class="tex2jax_process">\[disp--laymath
+<pre class="displaymath tex2jax_process">\[disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2}
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\imath{} \jmath{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\imath{} \jmath{}
\mathord{\text{\l{}}} \textsl{\c{c}}
\textsl{\b{a}} \textsl{\d{a}} \textsl{\k{a}} a^{h}_{l}
\ {}\ {} \ {}\-{} ! @ \} \{
\today{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\rightarrow{}
u
\bullet{} \copyright{} \dots{} \dots{} \equiv{}
\fbox{error} \mapsto{} - \dashv{} \Rightarrow{}
\mathord{\text{\AA{}}} \mathord{\text{\ae{}}} \mathord{\text{\oe{}}}
\mathord{\text{\AE{}}} \mathord{\text{\OE{}}} \mathord{\text{\o{}}}
\mathord{\text{\O{}}} \mathord{\text{\ss{}}} \mathord{\text{\l{}}}
\mathord{\text{\L{}}} \mathord{\text{\DH{}}}
\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}}
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}}
\mathsterling{}
\mathord{\text{\textordfeminine{}}} \mathord{\text{\textordmasculine{}}} ,
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}}
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}}
\mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
\mathord{\text{\guilsinglright{}}} \euro{} \rightarrow{} \leq{} \geq{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i}
\mathrm{r} sc \mathsf{sansserif} \mathit{slanted}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathbf{b} \mathit{i} \mathrm{r} sc
\mathsf{sansserif} \mathit{slanted}
+\]</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4191,15 +4192,15 @@ html ''
</p>
-<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U}
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
+<pre class="displaymath tex2jax_process">\[\ddot{u} \ddot{U} \tilde{n} \hat{a}
\acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
\textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\H{a}} \dot{a} \mathring{a}
\textsl{\t{a}}
\breve{a} \check{a}
? .
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathtt{t}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathtt{t}
+\]</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4525,34 +4526,34 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em class="tex2jax_process">\[disp--laymath
+<pre class="displaymath tex2jax_process">\[disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2}
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\imath{} \jmath{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\imath{} \jmath{}
\mathord{\text{\l{}}} \textsl{\c{c}}
\textsl{\b{a}} \textsl{\d{a}} \textsl{\k{a}} a^{h}_{l}
\ {}\ {} \ {}\-{} ! @ \} \{
\today{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\rightarrow{}
u
\bullet{} \copyright{} \dots{} \dots{} \equiv{}
\fbox{error} \mapsto{} - \dashv{} \Rightarrow{}
\mathord{\text{\AA{}}} \mathord{\text{\ae{}}} \mathord{\text{\oe{}}}
\mathord{\text{\AE{}}} \mathord{\text{\OE{}}} \mathord{\text{\o{}}}
\mathord{\text{\O{}}} \mathord{\text{\ss{}}} \mathord{\text{\l{}}}
\mathord{\text{\L{}}} \mathord{\text{\DH{}}}
\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}}
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}}
\mathsterling{}
\mathord{\text{\textordfeminine{}}} \mathord{\text{\textordmasculine{}}} ,
-\]</em></div>
-<div class="displaymath"><em
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
+\]</pre>
+<pre class="displaymath
tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}}
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}}
\mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
\mathord{\text{\guilsinglright{}}} \euro{} \rightarrow{} \leq{} \geq{}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathbf{b} \mathit{i}
\mathrm{r} sc \mathsf{sansserif} \mathit{slanted}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathbf{b} \mathit{i} \mathrm{r} sc
\mathsf{sansserif} \mathit{slanted}
+\]</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5293,15 +5294,15 @@ html ''
</p>
-<div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U}
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
+<pre class="displaymath tex2jax_process">\[\ddot{u} \ddot{U} \tilde{n} \hat{a}
\acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
\textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\H{a}} \dot{a} \mathring{a}
\textsl{\t{a}}
\breve{a} \check{a}
? .
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
-\]</em></div>
-<div class="displaymath"><em class="tex2jax_process">\[\mathtt{t}
-\]</em></div>
+\]</pre>
+<pre class="displaymath tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
+\]</pre>
+<pre class="displaymath tex2jax_process">\[\mathtt{t}
+\]</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5638,39 +5639,39 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em class="tex2jax_process">\[disp--laymath
+</pre><pre class="displaymath tex2jax_process">\[disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over
\sigma}\right)^2}
-\]</em></div><pre class="example-preformatted">
+\]</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em
class="tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
+</pre><pre class="displaymath
tex2jax_process">\[\mathbf{``simple-double--three---four----''} \hbox{aa}
`\hbox{}`simple-double-\hbox{}-three---four----'\hbox{}'
-\]</em></div><pre class="example-preformatted">
+\]</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em class="tex2jax_process">\[\imath{} \jmath{}
+</pre><pre class="displaymath tex2jax_process">\[\imath{} \jmath{}
\mathord{\text{\l{}}} \textsl{\c{c}}
\textsl{\b{a}} \textsl{\d{a}} \textsl{\k{a}} a^{h}_{l}
\ {}\ {} \ {}\-{} ! @ \} \{
\today{}
-\]</em></div><pre class="example-preformatted">
+\]</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em class="tex2jax_process">\[\rightarrow{}
+</pre><pre class="displaymath tex2jax_process">\[\rightarrow{}
u
\bullet{} \copyright{} \dots{} \dots{} \equiv{}
\fbox{error} \mapsto{} - \dashv{} \Rightarrow{}
\mathord{\text{\AA{}}} \mathord{\text{\ae{}}} \mathord{\text{\oe{}}}
\mathord{\text{\AE{}}} \mathord{\text{\OE{}}} \mathord{\text{\o{}}}
\mathord{\text{\O{}}} \mathord{\text{\ss{}}} \mathord{\text{\l{}}}
\mathord{\text{\L{}}} \mathord{\text{\DH{}}}
\mathord{\text{\TH{}}} \mathord{\text{\dh{}}} \mathord{\text{\th{}}}
\mathord{\text{\textexclamdown{}}} \mathord{\text{\textquestiondown{}}}
\mathsterling{}
\mathord{\text{\textordfeminine{}}} \mathord{\text{\textordmasculine{}}} ,
-\]</em></div><pre class="example-preformatted">
+\]</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em
class="tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
+</pre><pre class="displaymath
tex2jax_process">\[\mathord{\text{\textquotedblleft{}}}
\mathord{\text{\textquotedblright{}}}
\mathord{\text{\textquoteleft{}}} \mathord{\text{\textquoteright{}}}
\mathord{\text{\quotedblbase{}}} \mathord{\text{\quotesinglbase{}}}
\mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guillemotleft{}}}
\mathord{\text{\guillemotright{}}} \mathord{\text{\guilsinglleft{}}}
\mathord{\text{\guilsinglright{}}} \euro{} \rightarrow{} \leq{} \geq{}
-\]</em></div><pre class="example-preformatted">
+\]</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em class="tex2jax_process">\[\mathbf{b}
\mathit{i} \mathrm{r} sc \mathsf{sansserif} \mathit{slanted}
-\]</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath tex2jax_process">\[\mathbf{b} \mathit{i}
\mathrm{r} sc \mathsf{sansserif} \mathit{slanted}
+\]</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6538,17 +6539,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em class="tex2jax_process">\[\ddot{u} \ddot{U}
\tilde{n} \hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
+</pre><pre class="displaymath tex2jax_process">\[\ddot{u} \ddot{U} \tilde{n}
\hat{a} \acute{e} \bar{o} \grave{i} \acute{e} \grave{\bar{E}}
\textsl{\c{\'{C}}} \textsl{\c{\'{C}}} \textsl{\H{a}} \dot{a} \mathring{a}
\textsl{\t{a}}
\breve{a} \check{a}
? .
-\]</em></div><pre class="example-preformatted">
+\]</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em class="tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
-\]</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath tex2jax_process">\[TeX LaTeX \star{}
\mathord{\text{\aa{}}} \circledR{} ^{\circ{}}
+\]</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em class="tex2jax_process">\[\mathtt{t}
-\]</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath tex2jax_process">\[\mathtt{t}
+\]</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git
a/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
b/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
index 959af7337f..3ce3dc2682 100644
--- a/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
@@ -889,6 +889,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
pre.menu-entry-description-preformatted {font-family: serif; display: inline}
@@ -1150,36 +1151,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1921,15 +1922,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2256,36 +2257,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3026,15 +3027,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3436,36 +3437,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4206,15 +4207,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4540,36 +4541,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5310,15 +5311,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō ì
é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō ì
é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5655,41 +5656,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
     ! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ ↦ − ⊣ ⇒
Å æ œ Æ Œ ø Ø ß ł Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6557,17 +6558,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ⋆ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ⋆ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git
a/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
b/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
index ddc373e0a5..d026286f51 100644
--- a/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
@@ -887,6 +887,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
@@ -1201,36 +1202,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1971,15 +1972,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2305,36 +2306,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3075,15 +3076,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3420,41 +3421,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -4322,17 +4323,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
b/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
index 104625df43..d53cd7bf2f 100644
--- a/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
@@ -884,6 +884,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
pre.menu-entry-description-preformatted {font-family: serif; display: inline}
@@ -1146,36 +1147,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1917,15 +1918,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2252,36 +2253,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3022,15 +3023,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3416,36 +3417,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4186,15 +4187,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4520,36 +4521,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5290,15 +5291,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5635,41 +5636,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6537,17 +6538,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
b/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
index 987792dff3..3126ff99b4 100644
--- a/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
+++ b/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
@@ -882,6 +882,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
pre.menu-entry-description-preformatted {font-family: serif; display: inline}
@@ -1164,36 +1165,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1934,15 +1935,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2268,36 +2269,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3038,15 +3039,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3383,41 +3384,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -4285,17 +4286,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
b/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
index c2724fbffb..711adefce1 100644
--- a/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
+++ b/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
@@ -882,6 +882,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
span.program-in-footer {font-size: smaller}
@@ -1132,36 +1133,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1903,15 +1904,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2238,36 +2239,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3008,15 +3009,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
diff --git a/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
b/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
index c33f20353b..6b83da466b 100644
--- a/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
+++ b/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
@@ -889,6 +889,7 @@ kbd.key {font-style: normal}
p.flushleft-paragraph {text-align:left}
p.flushright-paragraph {text-align:right}
pre.display-preformatted {font-family: inherit}
+pre.displaymath {font-style: italic; font-family: serif}
pre.format-preformatted {font-family: inherit}
pre.menu-comment-preformatted {font-family: serif}
pre.menu-entry-description-preformatted {font-family: serif; display: inline}
@@ -1150,36 +1151,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-titlepage-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -1921,15 +1922,15 @@ html ''
<strong class="author">author</strong><br>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -2256,36 +2257,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -3026,15 +3027,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -3436,36 +3437,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a
id="index-copying-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-copying-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -4206,15 +4207,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -4540,36 +4541,36 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
</p>
-<div class="displaymath"><em>disp--laymath
+<pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div>
-<div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre>
+<pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div>
-<div class="displaymath"><em>ı ȷ
+</pre>
+<pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div>
-<div class="displaymath"><em>→
+</pre>
+<pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div>
-<div class="displaymath"><em>“ ”
+</pre>
+<pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div>
-<div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div>
+</pre>
+<pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <small class="sc">SC</small> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre>
<p><kbd class="kbd">default kbdinputstyle</kbd>
</p><dl class="vtable">
<dt><a id="index-vtable-i_002d_002dtem-default-kbdinputstyle"></a><span><kbd
class="kbd">vtable i--tem default kbdinputstyle</kbd><a class="copiable-link"
href="#index-vtable-i_002d_002dtem-default-kbdinputstyle">
¶</a></span></dt>
@@ -5310,15 +5311,15 @@ html ''
</p>
-<div class="displaymath"><em>ü Ü ñ â é ō
ì é Ḕ
+<pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div>
-<div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div>
-<div class="displaymath"><em><code class="t">t</code>
-</em></div>
+</pre>
+<pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre>
+<pre class="displaymath"><code class="t">t</code>
+</pre>
<ul class="itemize">
<li>e–mph item
</li></ul>
@@ -5655,41 +5656,41 @@ After clickstyle ⇒
<code class="code">@clicksequence{click @click{} A}</code> click ⇒ A
-</pre><div class="displaymath"><em>disp--laymath
+</pre><pre class="displaymath">disp--laymath
f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup class="sup">-{1 \over 2}\left({x-\mu
\over \sigma}\right)^2</sup>
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
+</pre><pre class="displaymath"><strong
class="strong">``simple-double--three---four----''</strong> aa<!-- /@w -->
`<!-- /@w -->`simple-double-<!-- /@w -->-three---four----'<!-- /@w -->'
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>ı ȷ
+</pre><pre class="displaymath">ı ȷ
ł ç
a̲ ạ ą a<sup class="sup">h</sup><sub class="sub">l</sub>
! @ } {
a sunny day
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>→
+</pre><pre class="displaymath">→
u
• © ... ... ≡
error→ → − -| ⇒
Å æ œ Æ Œ ø Ø ß ł
Ł Ð
Þ ð þ ¡ ¿ £
ª º ,
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>“ ”
+</pre><pre class="displaymath">“ ”
‘ ’ „ ‚ «
» « » ‹
› € → ≤ ≥
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><b class="b">b</b> <i class="i">i</i> <span
class="r">r</span> <span class="sc">SC</span> <span
class="sansserif">sansserif</span> <i class="slanted">slanted</i>
+</pre><pre class="example-preformatted">
<kbd class="kbd">default kbdinputstyle</kbd>
</pre><dl class="vtable">
@@ -6557,17 +6558,17 @@ Invalid use of @':
-</pre><div class="displaymath"><em>ü Ü ñ â é
ō ì é Ḕ
+</pre><pre class="displaymath">ü Ü ñ â é ō
ì é Ḕ
Ḉ Ḉ a̋ ȧ å a͡
ă ǎ
? .
-</em></div><pre class="example-preformatted">
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em>TeX LaTeX ∗ å ® °
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath">TeX LaTeX ∗ å ® °
+</pre><pre class="example-preformatted">
-</pre><div class="displaymath"><em><code class="t">t</code>
-</em></div><pre class="example-preformatted">
+</pre><pre class="displaymath"><code class="t">t</code>
+</pre><pre class="example-preformatted">
</pre><ul class="itemize">
<li><pre class="example-preformatted">e--mph item
diff --git a/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html
b/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html
index e1f4fa09a3..8cb232c352 100644
--- a/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html
+++ b/tp/tests/tex_html/res_parser/tex_gdef_mathjax/tex_gdef.html
@@ -16,6 +16,7 @@
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+pre.displaymath {font-style: italic; font-family: serif}
span:hover a.copiable-link {visibility: visible}
-->
</style>
@@ -45,8 +46,8 @@ MathJax = {
</p>
<p><em class="math tex2jax_process">\(\Desig \testmacro \otest\)</em>
</p>
-<div class="displaymath"><em class="tex2jax_process">\[ \Desig \testmacro
\otest
-\]</em></div>
+<pre class="displaymath tex2jax_process">\[ \Desig \testmacro \otest
+\]</pre>
</div>
diff --git a/tp/tests/tex_html/res_parser/tex_mathjax/tex.html
b/tp/tests/tex_html/res_parser/tex_mathjax/tex.html
index 21f847e667..cc20d1f0c1 100644
--- a/tp/tests/tex_html/res_parser/tex_mathjax/tex.html
+++ b/tp/tests/tex_html/res_parser/tex_mathjax/tex.html
@@ -16,6 +16,7 @@
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+pre.displaymath {font-style: italic; font-family: serif}
span:hover a.copiable-link {visibility: visible}
-->
</style>
@@ -76,8 +77,8 @@ Here some <em class="math tex2jax_process">\({x^i}\over{\tan
y}\)</em>.
<p>\
</p>
<p>Displaymath
-</p><div class="displaymath"><em class="tex2jax_process">\[-- f(x) = {1 \over
\sigma \sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over \sigma}\right)^2}
-\]</em></div>
+</p><pre class="displaymath tex2jax_process">\[-- f(x) = {1 \over \sigma
\sqrt{2\pi}}e^{-{1 \over 2}\left({x-\mu \over \sigma}\right)^2}
+\]</pre>
</div>
diff --git a/tp/tests/tex_html/res_parser/tex_notex/tex.html
b/tp/tests/tex_html/res_parser/tex_notex/tex.html
index 34d95d6b20..045a08b277 100644
--- a/tp/tests/tex_html/res_parser/tex_notex/tex.html
+++ b/tp/tests/tex_html/res_parser/tex_notex/tex.html
@@ -16,6 +16,7 @@
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+pre.displaymath {font-style: italic; font-family: serif}
span:hover a.copiable-link {visibility: visible}
-->
</style>
@@ -58,8 +59,8 @@ Here some <em class="math">{x^i}\over{\tan y}</em>.
<p>\
</p>
<p>Displaymath
-</p><div class="displaymath"><em>-- f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup
class="sup">-{1 \over 2}\left({x-\mu \over \sigma}\right)^2</sup>
-</em></div>
+</p><pre class="displaymath">-- f(x) = {1 \over \sigma \sqrt{2\pi}}e<sup
class="sup">-{1 \over 2}\left({x-\mu \over \sigma}\right)^2</sup>
+</pre>
</div>