Bugzilla@Mozdev – Bug 25710
<div id=smartTemplate4-template> is inserted in Stationery body
Last modified: 2014-02-22 10:42:45
You need to
before you can comment on or make changes to this bug.
I have installed smartTemplate4 and already had Stationery.
I made a new Stationery HTML-template using the following smartTemplate4 code
%from(firstname)%, [[CC: %cc(name)%,]]
If also use the "Reply > quote header" of smartTemplate4. The "Reply >
template" is empty.
If I create a new mail everything is fine (except the message that the %from
variable can not be inserted). But the following glitch does not occur.
If I reply to a mail as I understand it a smartTemplate4 code is inserted after
<body> tag and before my Stationery HTML-template. Sample extract:
<div id="smartTemplate4-template"> </div><br>
<my Stationery HTML-template code>...
<blockquote class=" cite" id="Cite_448705" type="cite">...</blockquote><br>
How can I avoid the insertion of the smartTemplate4-template div and br tag
which causes two unwanted line breaks before the wanted stationary code?
(In reply to comment #0)
> I have installed smartTemplate4 and already had Stationery.
> I made a new Stationery HTML-template using the following smartTemplate4 code
> in it:
> %from(firstname)%, [[CC: %cc(name)%,]]
> %quoteHeader%<br />
> How can I avoid the insertion of the smartTemplate4-template div and br tag
> which causes two unwanted line breaks before the wanted stationary code?
You should enable the checkbox "Support Stationery addon" - this should bypass
all the templates of smartTemplate4 and do the processing in Stationery only
(as long as you have a Stationery template selected). If you reply without
Stationery, smartTemplate4 will use its own templates as before.
The whole point of Stationery support is that ST4 is not trying to rebuild the
email from scratch, instead it only replaces variables within the Stationery
The only exception is the use of the %quoteHeader% variable - this will insert
the contents of the Quote Header Edit box. You can use this to your advantage
by putting the %from...% into the Quote Header box (on Reply and Forward only)
and removing it from the Stationery - then you can also avoid the error
More information is available here:
..and when I said should, obviously I hadn't tested it specifically.
Interestingly, I had Stationery files that do not generate a <br> within the
<div id="smartTemplate4-template"></div> (and an empty div should not take up
any space). In my template there is also no <br> after this div.
Have you set SmartTemplate4 Settings > Global Settings > Mail Content
Number of line breaks at top: 0
It may be better not to have the div in the mail body at all (when Stationery
is being used) but there might be a technical reason for it being there.
Setting the bug to "assigned".
Created an attachment (id=7791) [details]
0.9.5 prerelease 15
This version removes the (empty) smartTemplate4-template <div> when Stationery
is used. It also ignores the "new lines at top" settings, so in theory it
should not insert any extra line breaks outside or inside the body of the