Categories > TinyButStrong general >

splitting into multiple rows

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: SarCaSM
Date: 2004-12-24
Time: 20:20

splitting into multiple rows

I'm looking to take a field from a MergeBlock and split it into a new row everytime a HTML breakline tag is found.  Is this possible through the use of TBS?
By: Skrol29
Date: 2004-12-25
Time: 00:35

Re: splitting into multiple rows

Hello,
I'm not sur to figure out why you're trying to do.
Do you just want to replace each <br> tags with breaklines into the value of a field before to display it?
By: SarCaSM
Date: 2004-12-25
Time: 04:03

Re: splitting into multiple rows

well, I have a table, each row contains a date, description, and due date, so 3 columns.  and I'm bringing the values for the fields in through a Mergeblock in TBS.  The description might contain breaklines in it though, so before getting stored in the database, the breaklines get turned into <br /> tags.  But according to the XHTML Strict standard, I cannot have <br /> tags in a <td></td> tag.  So I need to start a whole new row, leave the date and due date fields blank, and put other part of the description in place. 
By: SarCaSM
Date: 2005-01-10
Time: 02:59

Re: splitting into multiple rows

anyone with any ideas on this one?  Would trully be a terrific help if so.
By: Skrol29
Date: 2005-01-10
Time: 03:59

Re: splitting into multiple rows

Hello SarCaSM,

I've tried an XHTML page with <br /> inside <td></td> and it has been validated by the W3C validator.

But replacing <br> by row break won't make the same visual result.
Because next cells (<td>) may have line returns too.
Can't you put your text with <br/> inside a <div> or other?
By: SarCaSM
Date: 2005-01-10
Time: 04:41

Re: splitting into multiple rows

well, ha! nevermind then, I swear I ran my page through the validator once and it reported its invalidation to me.  oh well, thanks for the reply!