Closed (fixed)
Project:
Simplenews
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2010 at 14:03 UTC
Updated:
29 Dec 2010 at 13:00 UTC
When i send newsletter in textmode, the title in the body have many dashes, example:
-------- TEST1
------------------------------------
How can i remove it?
Thanks.
Comments
Comment #1
daneyuleb commentedWould like to know this as well--using "simplenews-newsletter-body.tpl.php" to remove title, but that pesky "-----" is embedded in the body var, and not easily finding out where in the code it's inserted. Thanks!
-Daneyul
Comment #2
guru81 commenteddaneyuleb: Thanks for reply! If the "-----" is embedded in the body var, i can substitute it in simplenews-newsletter-body.tpl.php, whith a specific function.
Comment #3
guru81 commentedHello,
i used this:
But not working. Are you sure that "-----" is embedded in the body?
Comment #4
simon georges commentedCross-referencing #795228: How to avoid printing the title in the body of plain-text mails.
Comment #5
daneyuleb commentedOops. My bad--I had commented out the "print $title" in the simplenews-newsletter-body.tpl.php. Since the "-----"s still appeared, I'd assumed they were embedded in the only remaining var, $body.
Looking a bit closer this morning, I see it's really the "drupal_html_to_text" function that's getting called in the module's simplenews_html_to_text function that's putting 'em in.
-Daneyul
Comment #6
guru81 commentedThank you very much!
Removing h2 tag the problem has been solved.
Regards.
Comment #7
simon georges commented