ich habe mit einem TMemo eine kleine HTML-Datei (Email-Signatur-Vorlage) verändert und möchte sie dann speichern.
Wenn ich den Inhalt vom TMemo mit Strg-C in einem externen Editor (NotePad++) kopiere und dort speichere, dann entspricht das Ergebnis den Erwartungen.
Speichere ich hingegen das TMemo mit SaveToFile, dann ist das Ergebnis "kaputt".
Woran mag das liegen?
Hier mal das kopierte Ergebnis (korrekte Darstellung):
Code: Alles auswählen
<style type="text/css">* { font-size: 12px;font-family: "Helvetica Neue", Helvetica, Arial, sans;color: #3c3c3c;line-height: 1.35em;}strong {font-weight: bold;}.red {color: #e63246;}.big {font-size: 1.2em;}.small {font-size: 0.9em;}table {border: none;padding: 0;margin: 0;}td {vertical-align: middle;line-height: 1em}p {padding-bottom: 5px;}.social {padding-left: 5px;}hr {border:none;background-color: #e63246;height: 3px;max-width: 444px;margin: 0;}</style>
<span>
<p>
<span class="big">Ralli</span><br />
Technik
</p>
<p>
<span class="red">SUMMACOM GmbH & Co. KG</span><br />
Kastanienweg 11-13<br />
66386 St. Ingbert
<p><table >
<tr><td>Telefon:</td><td>+49 (0) 6894 - 145 xxxx</td></tr>
<tr><td>Telefax:</td><td>+49 (0) 6894 - 145 4 xxxx</td></tr>
</table>
</p><p><table><tr><td>E-Mail:</td><td><a href="mailto:ralli@summacom.de">ralli@summacom.de</a></td></tr><tr><td>Internet:</td><td><a href="https://www.summacom.de">www.summacom.de</a></td></tr><tr><td>Social:</td><td><a href="https://www.facebook.com/summacom/"><img src="assets/fb_logo.png"></a><a class="social" href="https://www.instagram.com/summacom/"><img src="assets/instagram_logo.png"></a></td></tr></table></p><p><a href="http://www.summacom.de"><img src="assets/summ_logo.png"></a></p><p class="small"><span class="red">SUMMACOM</span> GmbH & Co. KG<br />Amtsgericht Saarbr?cken HRA 10072</p><p class="small">Geschäftsführer: Martin Schimpf<br />Persönlich haftende Gesellschafterin: Sparda-Telefonservice Verwaltung GmbH<br />Amtsgericht Saarbrücken HRB 16010</p><p class="small">Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.<br />Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,<br />informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail.<br />Das unerlaubte Kopieren und die unbefugte Weitergabe dieser E-Mail sind nicht gestattet. </p><p class="small">This e-mail may contain confidential and/or privileged information.<br />If you are not the intended recipient or have received this e-mail in error please notify<br /> the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or<br /> distribution of the material in this e-mail is strictly forbidden. </p></span>
Und hier das Ergebnis mit SaveToFile gespeichert (kaputt):
Code: Alles auswählen
<style type="text/css">* { font-size: 12px;font-family:
"Helvetica Neue", Helvetica, Arial, sans;color:
#3c3c3c;line-height: 1.35em;}strong {font-weight:
bold;}.red {color: #e63246;}.big {font-size: 1.2em;}.small
{font-size: 0.9em;}table {border: none;padding:
0;margin: 0;}td {vertical-align: middle;line-height:
1em}p {padding-bottom: 5px;}.social {padding-left:
5px;}hr {border:none;background-color:
#e63246;height: 3px;max-width: 444px;margin: 0;}
</style>
<span>
<p>
<span class="big">Ralli</span><br />
Technik
</p>
<p>
<span class="red">SUMMACOM GmbH & Co.
KG</span><br />
Kastanienweg 11-13<br />
66386 St. Ingbert
<p><table >
<tr><td>Telefon:</td><td>+49 (0) 6894 -
145 xxxx</td></tr>
<tr><td>Telefax:</td><td>+49 (0) 6894 -
145 4 xxxx</td></tr>
</table>
</p><p><table><tr><td>E-Mail:</td><td><a
href="mailto:ralli@summacom.de">ralli@summacom.
de</a></td></tr><tr><td>Internet:</td><td><a
href="https://www.summacom.de">www.summacom
.de</a></td></tr><tr><td>Social:</td><td><a
href="https://www.facebook.com/summacom/"><im
g src="assets/fb_logo.png"></a><a class="social"
href="https://www.instagram.com/summacom/"><i
mg
src="assets/instagram_logo.png"></a></td></tr></t
able></p><p><a
href="http://www.summacom.de"><img
src="assets/summ_logo.png"></a></p><p
class="small"><span
class="red">SUMMACOM</span> GmbH & Co.
KG<br />Amtsgericht Saarbr?cken HRA 10072</p><p
class="small">Geschäftsführer: Martin
Schimpf<br />Persönlich haftende
Gesellschafterin: Sparda-Telefonservice Verwaltung
GmbH<br />Amtsgericht Saarbrücken HRB
16010</p><p class="small">Diese E-Mail enthält
vertrauliche und/oder rechtlich geschützte
Informationen.<br />Wenn Sie nicht der richtige
Adressat sind oder diese E-Mail irrtümlich
erhalten haben,<br />informieren Sie bitte sofort den
Absender und vernichten Sie diese E-Mail.<br />Das
unerlaubte Kopieren und die unbefugte Weitergabe
dieser E-Mail sind nicht gestattet. </p><p
class="small">This e-mail may contain confidential
and/or privileged information.<br />If you are not the
intended recipient or have received this e-mail in error
please notify<br /> the sender immediately and delete
this e-mail. Any unauthorized copying, disclosure
or<br /> distribution of the material in this e-mail is
strictly forbidden. </p></span>
Irgendwelche Ideen?
Danke fürs Feedback.
VG,
Ralf