First Last Prev Next    No search results available
Details
: <div id=smartTemplate4-template> is inserted in Stationer...
Bug#: 25710
: smarttemplate4
: General
Status: ASSIGNED
Resolution:
: PC
: Windows 7
: unspecified
: P3
: minor
: ---

:
:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Chris R. <ChrisR@teewars.org>
Assigned To: Axel Grude <axel.grude@gmail.com>

Attachments
0.9.5 prerelease 15 (320.33 KB, application/x-xpinstall)
2014-02-22 10:40, Axel Grude
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2014-02-20 04:30
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 />
%quotePlaceholder%

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: 

<body smarttemplateinserted="true">
<div id="smartTemplate4-template">&nbsp;</div><br>
<my Stationery HTML-template code>...
<div id="smartTemplate4-quoteHeader">...</div>
<blockquote class=" cite" id="Cite_448705" type="cite">...</blockquote><br>
</body>

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?
------- Comment #1 From Axel Grude 2014-02-21 19:43:12 -------
(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 />
> %quotePlaceholder%
> 

> 
> 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
File.

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
message.

More information is available here:
http://smarttemplate4.mozdev.org/stationery.html#howtoUse
------- Comment #2 From Axel Grude 2014-02-22 10:21:37 -------
..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".
------- Comment #3 From Axel Grude 2014-02-22 10:40:37 -------
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
Stationery.

First Last Prev Next    No search results available