Community Discussions and Support
AW: Version4.6.2 misinterprets HTML

>>Setting the "wantcss" flag to "yes" solved the problem. <<

I agree. I have changed in the ini file from "wantcss=no" to "wantcss=yes" about 2 years ago and since then this problem never was visible.

For test I have changed to "no" and then many messages have again this problem. So set "wantcss=yes" was the better decision.

 

&lt;FONT size=2 face=Arial&gt;&lt;FONT size=2 face=Arial&gt; &lt;P align=left&gt;&amp;gt;&amp;gt;Setting the &quot;wantcss&quot; flag to &quot;yes&quot; solved the problem. &amp;lt;&amp;lt;&lt;/P&gt; &lt;P align=left&gt;I agree. I have changed in the ini file from &quot;wantcss=no&quot; to &quot;wantcss=yes&quot; about 2 years ago and since then this problem never was visible. &lt;/P&gt; &lt;P&gt;For test I have changed to &quot;no&quot; and then many messages have again this problem. So set &quot;wantcss=yes&quot; was&amp;nbsp;the&amp;nbsp;better decision. &lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;

The HTML sequence:

-------------------

<style type="text/css">

    

    a {color:#004276;text-decoration:none;}    

    </style>

---------------------------------- 

 is misinterpreted, starting with 4.6.2.  The "a {color:#004276;text-decoration:none;}" portion prints as text at the start of the message.

 

Similar misinterpretations occur with other constructs of this form, where the STYLE tag is multi-line.  This was just the simplest one I found today to submit in this error report. Other mail clients render emails like this correctly.

&lt;p&gt;The HTML sequence:&lt;/p&gt;&lt;p&gt;-------------------&lt;/p&gt;&lt;p&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; a {color:#004276;text-decoration:none;} &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/style&amp;gt;&lt;/p&gt;&lt;p&gt;----------------------------------&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;is misinterpreted, starting with 4.6.2. &amp;nbsp;The &quot;a {color:#004276;text-decoration:none;}&quot; portion&amp;nbsp;prints as text at the start of the message.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Similar misinterpretations occur with other constructs of this form, where the STYLE tag is multi-line. &amp;nbsp;This was just the simplest one I found today to submit in this error report. Other mail clients render emails like this correctly.&lt;/p&gt;

[quote user="jss1941"]Similar misinterpretations occur with other constructs of this form, where the STYLE tag is multi-line.  This was just the simplest one I found today to submit in this error report. Other mail clients render emails like this correctly.[/quote]

John, please include a sample message (or forward it to the repective personal address (Martin Ireland or me), the addresses may be taken from the respective help files, e.g.) and tell us what renderer you're using if you want us to fix this. And Other mail clients render emails like this correctly doesn't help a lot either since they are different by nature and if something fails it's reason enough to be fixed in its own right ... Aside from this (since I assume you're using BearHtml) check whether WantCss is enabled in BearHtml.ini or not and try the opposite setting.

&lt;p&gt;[quote user=&quot;jss1941&quot;]Similar misinterpretations occur with other constructs of this form, where the STYLE tag is multi-line. &amp;nbsp;This was just the simplest one I found today to submit in this error report. Other mail clients render emails like this correctly.[/quote]&lt;/p&gt;&lt;p&gt;John, please include a sample message (or forward it to the repective personal address (Martin Ireland or me), the addresses may be taken from the respective help files, e.g.) and tell us what renderer you&#039;re using if you want us to fix this. And &lt;em&gt;Other mail clients render emails like this correctly&lt;/em&gt; doesn&#039;t help a lot either since they are different by nature and if something fails it&#039;s reason enough to be fixed in its own right ... Aside from this (since I assume you&#039;re using BearHtml) check whether &lt;em&gt;WantCss&lt;/em&gt; is enabled in BearHtml.ini or not and try the opposite setting.&lt;/p&gt;
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

[quote user="jss1941"]

The HTML sequence:

-------------------

<style type="text/css">

    

    a {color:#004276;text-decoration:none;}    

    </style>

---------------------------------[/quote]

BTW: Is the style definition enclosed in comment tags (<!-- ... -->) or not? This might be a hint for implementing a workaround for Martin if enclosing it helps avoid this issue.

[quote user=&quot;jss1941&quot;]&lt;p&gt;The HTML sequence:&lt;/p&gt;&lt;p&gt;-------------------&lt;/p&gt;&lt;p&gt;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; a {color:#004276;text-decoration:none;} &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/style&amp;gt;&lt;/p&gt;&lt;p&gt;---------------------------------[/quote]&lt;/p&gt;&lt;p&gt;BTW: Is the style definition enclosed in comment tags (&amp;lt;!-- ... --&amp;gt;) or not? This might be a hint for implementing a workaround for Martin if enclosing it helps avoid this issue.&lt;/p&gt;
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

The Style tag is in the body of the html stream, so it is Html V4.  Bear only processes Html 3.2   Solution: key in Shift + Ctrl + R to disable CSS processing then close and re-open the message. The Style text will go away, but then the color won't appear either :-(

Martin

&lt;p&gt;The Style tag is in the body of the html stream, so it is Html V4.&amp;nbsp; Bear only processes Html 3.2&amp;nbsp;&amp;nbsp; Solution: key in Shift + Ctrl + R to disable CSS processing then close and re-open the message. The Style text will go away, but then the color won&#039;t appear either :-(&lt;/p&gt;&lt;p&gt;Martin &lt;/p&gt;

Thanks to both Martin and Michael.

For some reason, when I upgraded to 4.6.2, the renderer got switched to bearhtml.  Setting the "wantcss" flag to "yes" solved the problem.  Switching to IErenderer also solved the problem.

Thanks -- now I know two ways to get around this sort of problem.  BTW, I found two different beardef.css files -- one in PMAIL\MAIL and the other in PMAIL\PROGRAMS. Both are empty -- is this correct?  I found this while searching for bearhtml.ini.  Are these needed, or just old stuff left over from earlier version of Pegasus?

&lt;p&gt;Thanks to both Martin and Michael.&lt;/p&gt;&lt;p&gt;For some reason, when I upgraded to 4.6.2, the renderer got switched to bearhtml. &amp;nbsp;Setting the &quot;wantcss&quot; flag to &quot;yes&quot; solved the problem. &amp;nbsp;Switching to IErenderer also solved the problem.&lt;/p&gt;&lt;p&gt;Thanks -- now I know two ways to get around this sort of problem. &amp;nbsp;BTW, I found two different beardef.css files -- one in PMAIL\MAIL and the other in&amp;nbsp;PMAIL\PROGRAMS. Both are empty -- is this correct? &amp;nbsp;I found this while searching for bearhtml.ini. &amp;nbsp;Are these needed, or just old stuff left over from earlier version of Pegasus?&lt;/p&gt;

Beardef.css is obsolete and can be deleted from both places. Please note that as is stated in the help file, CSS in Bearhtml is stable so as more features become available in CSS they will not be supported. Needless to say, browsers and IERenderer should be able to keep up with Microsoft. :-)

 Martin

&lt;p&gt;Beardef.css is obsolete and can be deleted from both places. Please note that as is stated in the help file, CSS in Bearhtml is stable so as more features become available in CSS they will not be supported. Needless to say, browsers and IERenderer should be able to keep up with Microsoft. :-) &lt;/p&gt;&lt;p&gt;&amp;nbsp;Martin &lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft