1
Moonrakre
News - Disable linebreak conversion.
  • 2010/2/5 10:12

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


If you put a table in a News story a large white space appears before the table. This is caused by the XOOPS text sanitizer inserting <br /> at every line break. Other modules, e.g. Content, SmartSection and newbb, have an option to enable or disable the line break conversion. Can we have this in News please?

A binary variable is needed which is saved in the database and then included in calls to displayTarea in class.newsstory.php. There are three pertinent calls at around lines 321, 1166 and 1198. They are the calls which sanatize hometext and bodytext. displayTarea has up to 6 parameters and these calls currently use four of them. The fifth parameter defaults to 1 and will need to be included at that value followed by the new field.

In News 1.64 the lines in class.newsstory.php are 367,1239 and 1272.

Login

Who's Online

166 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits