![]() |
Double Line Breaks <br> in Text Area
I'm loading up my site with content and have been working on the Category Description text areas.
When I try to put in some HTML text, all line breaks are doubled, that is, regardless of whether I use a </p> or at the end of the line, a new is put in at the beginning of the next line. The effect is all lines are double-spaced. Other HTML tags, such as [i] and table commands work just fine. I've searched the forums and can't find anything addressing this issue. Any thoughts or advice? Thanks! Gary |
OK, I've found some references in the forum in which files such as product_modify.php supposedly have a function that replaces "\n" with "
", so I looked through all the files pertaining to categories I could find to see if something similar was happening. No joy, yet. I am not finding the function (not that I really know what I am looking for...just looking for commands within the code). I'd really like to see if X-Cart can sell my products any better than the SHTML/Paypal hacks I currently have, but I am beginning to have doubts because of things like this. Anyone have ideas ... anyone? gary |
|
Thanks, I'm off to see the wizard of Smarty!
|
Just got back from smarty.php.net and found a regex_replace in the subcategories.tpl file. Took out the
that was to be put in at each new line and it worked like a charm. Thanks very much! Plus, the Smarty site is fascinating. I can see I'm going to spend a lot of time there! gary |
All times are GMT -8. The time now is 04:42 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.