Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-11-13 11:11:31

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

[textile] 'enter' inside table

hi

‘enter’ should start a new line inside a table, correct? but it doesn’t every time :( even worse, it looses the whole text following for ‘enter’ hit! why?

those times i manualy insert <br /> element.

Last edited by Gallex (2014-11-13 12:24:32)

Offline

#2 2014-11-13 12:23:49

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: [textile] 'enter' inside table

if i test my table code in http://txstyle.org/ , ‘enter’ working fine.
inserting it back to my textile – ‘enter’ again not working.

Offline

#3 2014-11-13 13:04:34

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: [textile] 'enter' inside table

What is your table code, Gallex?

Offline

#4 2014-11-13 13:25:17

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: [textile] 'enter' inside table

|:. |{width:20%}|{width:10%}|{width:10%}|{width:60%}|
|^.
|_. Koht |_. Kaugus|_. Hind |_. Kirjeldus|
|-.
|<. "Jasna suusakeskus":http://www.jasna.sk/en/activities-and-events/winter/freeride/?fb_locale=cs_CZ |14 km|35 €|<. Madal-Tatrate, ühtlasi Slovakkia kuulsaim, suurim ja modernseim talvekuurort asub 15-minutilise sõidu kaugusel. Hooldatud radu on 50 km, neist 27 km sellised, mis (kunst)lumega kaetud 5 kuud aastas. Gondeltõstukiga saab 2000 m kõrgusele, sealt omakorda kergesti teisel pool mäge asuvatele radadele. <br />Jasnas on nõlvu igale maitsele - lastele, algajale, ekspertidele. <br />Siniseid radu 22, punaseid 19, musti 8 km. Tõstukeid 26. Kõrgus 2024-943 m (vahe 1081 m). <br />Freerider’itele on mäeaheliku harjal 1 must, 6 punast ning allpool 2 sinist tsooni. Vaata lähemalt "siit.":http://www.jasna.sk/en/activities-and-events/winter/freeride/?fb_locale=cs_CZ <br />*NB! 5e päeva võõrandamatu mäepass maksab 165 € (ehk 33 € päev) ja see kehtib Jasnas, Tatranská Lomnicas, Štrbské Plesos ning Starý Smokovecis.* "Hinnakiri":http://www.jasna.sk/en/prices/skipass-pricelist-winter-20142015/ |
|<. "Štrbské Pleso":http://www.vt.sk/en/mountains-holiday/skiing/strbske-pleso/ |46 km|35 €|<. Asub Kõrg-Tatrates. Murdmasuusatajatele on see Slovakkia tuntuim koht, kus 1970. aastal peeti suusatamise MM. Sealtmaalt toimuvad selles keskuses regulaarselt MK etapid. <br />Mõistagi ei pea Štrbské Plesos lihvima vaid murdmaad. On ka mäesuusanõlvad ja lumepark. <br />Siniseid radu 4, punaseid 6 km. Tõstukeid 7. Kõrgus 1840-1376 m (vahe 464 m). |

with manually inserted <br />

Offline

#5 2014-11-13 14:41:39

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: [textile] 'enter' inside table

Hi Gallex – I see what you mean now.

Could you use Textile’s rowspan equivalent (forward slash then a number) to get around the problem. Also, your <br /> should ideally be ==<br />== so they’re escaped from Textile processing.

Edit: formatting.

Last edited by gaekwad (2014-11-13 15:00:13)

Offline

#6 2014-11-13 15:00:54

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: [textile] 'enter' inside table

Gallex wrote #285713:

if i test my table code in http://txstyle.org/ , ‘enter’ working fine.

A reason might be the Textile version txstyle.org is running:

PHP Textile v3.5.5

… while TXP 4.5.7 is delivered with Textile 2.4.3. AFAIR that’s going to change with TXP v4.6.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2014-11-14 13:49:17

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: [textile] 'enter' inside table

gaekwad wrote #285720:

Could you use Textile’s rowspan equivalent (forward slash then a number) to get around the problem.

where and why i should use it…? can’t understand a point….

Offline

#8 2014-11-17 10:22:05

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: [textile] 'enter' inside table

Gallex wrote #285758:

where and why i should use it…? can’t understand a point….

A line break (not <br>) will stop the table rendering, at least it did when I tested it here. So, line break is not good. Instead of <br>, you start a new <tr> for each line, and then use rowspan for the data in other columns. I haven’t taken into account any styling or CSS, so this might be not a great solution.

Offline

Board footer

Powered by FluxBB