Bug: User-defined default font reverts near HTML signature (Options > Composition > HTML style > Font)
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2021-06-02 07:05:58+00:00
Resolved: 2021-06-02 11:47:01+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

1) I set font 'Liberation Sans' and small in options > settings > Writing style
2) I start a new message (with an account with signature: HTML file)
3) I write one line then push [Enter] key
4) I write on the second line, but font settings are wrong



Actual results:

End of message don't use default font:

<!DOCTYPE html><html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=">
  </head>
  <body text="#333333" bgcolor="#FFFFFF">
    <p><font size="-1"><font face="Liberation Sans">Ligne 1 puis [Entrée]<br>
        </font></font></p>
    <p>Ligne 2 (police différente en taille)<br>
    </p>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=">
      <div class="moz-signature">
        <table style="border-collapse:collapse;" width="750px" height="84" cellspacing="0" cellpadding="5"
          bordercolor="#666666" border="1">
          <tbody>
            <tr>
              <td width="140" valign="top" align="center"><img moz-do-not-send="false"
src="data:image/png;filename=Edu-Nat-Grenoble.png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAABICAIAAAC1Erp4AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAVMklEQVR42u2da3BV1RXH84kZcej4wQeWAeP4wXbqC8daOmV8dBiUaqMpWutU00E6Kg7YSRkdLBqH1KopNSkRVMDryKMFUYMJzBWCEAISqGAkgMEMGOVhBOKjqSDo1N7+zvnfLHb2fSYh4RHu7Dmz7777nJu7/mv912Pvc5ITO/3qzKv1i7Z1m5toazY1Wlv7nv92T0trpy6bc1qynXp9uHd/dN3mSNXqeUvXvrw4OLqtYvUmEGLOkSOHT8PQU6+vDn1b/8EuxF22YNm0f77ptUhVzVvvbGvc1dKFK8dhuPFXsZz+sf5nH21nhK1/6sanVwyLvRFNft0jra3/HT06duaZ2bby6Sc+DJ8caEPQMxZV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QHeUwLcfRuM45bSYBDrm49KV0qF4qO5qbbARKpq4BYoXsuf2sWtBnfRED2fkoXpmRm2cO09HwB49MyM9ObVR59YD5MgGruPXGldIiRS6vZF/+BxYiCnjjKypE/0UWMCOHXuCTJ984WA0GuEpecpJd5q6D1SyQpzboXOU397npIefpJl9NXX/38DXKEHK+EP0HSr1rmJXvp739wJci3yBF15ulhfByN8ooYe9aZn7dnSW8a7EOPPvVq8GjeABcBCXX/W3umXWQaKjE8WHsFqXbgVDDVX09K0donpyZNIH/UHQj18qWtffRqG5HiQDCPWd5uatS2sZvN2QiYVX/W8MQZ1NxzTPm/7qptPPjkNQwayCp5090UbqNCwFTsqnzhWj+w+DcMJ8fo/KWsd/KKKZMcAAAAASUVORK5CYII="
                  alt="Logo AC-Grenoble" width="130" height="72"><br>
              </td>
              <td width="100%" valign="top" bgcolor="#666666"> <font style="font-size:14px" color="#ffffff"><b>David
                    ROUMANET</b><br>
                </font> <font style="font-size:11px" color="#91a6b7"> <i>Professeur BTS SIO (Services Informatiques
                    aux Organisations)</i><br>
                  <br>
                </font> <font style="font-size:12px" color="#ffffff"> Lycée Aristide Bergès - 10 avenue Aimé Bouchayer
                  - BP 31 - 38171 Seyssinet-Pariset Cedex<br>
                </font> <font color="#ffffff"><font style="font-size:12px">☎ 04.76.26.42.42                 ☏
                    07.81.83.65.00<br>
                  </font> </font></td>
            </tr>
          </tbody>
        </table>
        <font style="font-size:10px" color="#91a6b7"> <i>Pour le respect de l'environnement n'imprimez ce courrier que
            si c'est nécessaire (considérez aussi les impressions virtuelles PDF).</i><br>
        </font> </div>
    </div>
    <div id="grammalecte_menu_main_button_shadow_host" style="width: 0px; height: 0px;"></div>
  </body>
</html>


Expected results:

<!DOCTYPE html><html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=">
  </head>
  <body text="#333333" bgcolor="#FFFFFF">
    <p><font size="-1"><font face="Liberation Sans">test</font></font></p>
    <p><font size="-1"><font face="Liberation Sans">test</font></font></p>
    <p><font size="-1"><font face="Liberation Sans">test</font></font></p>
    <p><font size="-1"><font face="Liberation Sans"></font></font><br>
    </p>
    <div id="grammalecte_menu_main_button_shadow_host" style="width: 0px; height: 0px;"></div>
  </body>
</html>