Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-02 17:57:50

minusf
Member
Registered: 2005-02-15
Posts: 104

[textile] textile in excerpt ignoring laws of physics

hi there,

dear moderator, before you delete this post or move it, hear me out.

yes, i have read the faq, and i have reported numerous bugs before
on the textile site.

have a look at the following highly experimental under constraction
page
please.
(no other link will work as of yet anyway)

all the text on the page comes from excerpts and i have already
vented a bit of frustration about textile in excerpts being wrapped
in paragprah tags…

please note the right side column, it should contain 3 statements in bold,
but instead you will find only 2 and one actually enclosed verbatim in asterisks.

i tried everything i could think of. remove space, remove non-english chars,
it is always the same. it just defies the laws of physics. as you can see,
the very same excerpt contains 2 more of this parsed correctly, so textile
is not turned off for the article. i have no plugins installed whatsoever.

after pasting all of it into the textile site, it renders correctly, obviously.

so first one to figure this out also wins an imaginary iPod :]

Textpattern version: 4.0.8 (r3085)
Last Update: 2009-02-02 16:39:13/2009-02-02 16:32:54
Document root: /3w
$path_to_site: /3w/unas.cz/s/santakocici
Textpattern path: /3w/unas.cz/s/santakocici/textpattern
Permanent link mode: id_title
open_basedir: .:/tmp:/usr/local/lib/php
upload_tmp_dir: /home/tmp
Temporary directory path: /3w/unas.cz/s/santakocici/textpattern/tmp
Site URL: santakocici.unas.cz
PHP version: 4.3.4
GD Image Library: bundled (2.0.15 compatible); supported formats: JPG, PNG.
Server Local Time: 2009-04-02 19:53:30
MySQL: 5.0.67-community-log
Locale: en_GB.UTF-8
Server: Apache/2.0.59 (Unix)
Apache version: Apache/2.0.59 (Unix)
PHP Server API: apache2handler
RFC 2616 headers: 
Server OS: Linux 2.6.20-1.2320.fc5

Pre-flight check: 
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: exec system passthru set_time_limit error_log ini_alter ini_set dl popen pfsockopen openlog syslog readlink symlink link leak fsockopen proc_open
------------------------

we is experts™

Offline

#2 2009-04-02 21:28:40

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: [textile] textile in excerpt ignoring laws of physics

It would be useful to see a tag trace

Offline

#3 2009-04-02 21:53:27

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: [textile] textile in excerpt ignoring laws of physics

is there textile output in the tag trace?
it seems a bit more high level

btw, as is apparent from the trace, since last writing
i have installed 2 plugins, upm_textile and upm_textile_toggle.

the issues do not seem to be related as the bug is there
regardless of the plugins’ presence, i think it’s an obscure
textile bug of somesort. but i have been wrong before :]

<!-- txp tag trace: 
[SQL (0.0013909339904785): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.00030112266540527): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.0001828670501709): select page, css from txp_section where name = 'default' limit 1]
[SQL (0.00022506713867188): select user_html from txp_page where name='default']
[Page: default]
<txp:page_title />
<txp:site_url />
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<txp:section_list sections="co-je-noveho,nase-kocky,osvojit,pribehy,o-nas,kontakt" break="li" />
	[SQL (0.00016903877258301): select name, title from txp_section where name in ('co-je-noveho','nase-kocky','osvojit','pribehy','o-nas','kontakt') order by field(name, 'co-je-noveho','nase-kocky','osvojit','pribehy','o-nas','kontakt')]
<txp:section link="0" title="1" name="co-je-noveho" />
	[SQL (0.00015115737915039): select title from txp_section where name='co-je-noveho']
<txp:article_custom section="co-je-noveho" form="excerpt" limit="5" />
	[SQL (0.074878931045532): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('co-je-noveho') order by Posted desc limit 0, 5]
	[article 10]
	[SQL (0.00086212158203125): select Form from txp_form where name='excerpt']
	[Form: excerpt]
	<txp:permlink>
		<txp:title />
	</txp:permlink>
	<txp:upm_textile>
		<txp:excerpt />
		<txp:permlink>
		</txp:permlink>
	</txp:upm_textile>
<txp:article_custom category="cinnost" form="excerpt" />
	[SQL (0.00067806243896484): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and (Category1 IN ('cinnost') or Category2 IN ('cinnost')) order by Posted desc limit 0, 10]
	[article 9]
	[Form: excerpt]
	<txp:permlink>
		<txp:title />
	</txp:permlink>
	<txp:upm_textile>
		<txp:excerpt />
		<txp:permlink>
		</txp:permlink>
	</txp:upm_textile>
<txp:section link="0" title="1" name="nase-kocky" />
	[SQL (0.00017404556274414): select title from txp_section where name='nase-kocky']
<txp:article_custom section="nase-kocky" form="excerpt" limit="5" />
	[SQL (0.00052905082702637): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('nase-kocky') order by Posted desc limit 0, 5]
	[article 8]
	[Form: excerpt]
	<txp:permlink>
		<txp:title />
	</txp:permlink>
	<txp:upm_textile>
		<txp:excerpt />
		<txp:permlink>
		</txp:permlink>
	</txp:upm_textile>
	[article 7]
	[Form: excerpt]
	<txp:permlink>
		<txp:title />
	</txp:permlink>
	<txp:upm_textile>
		<txp:excerpt />
		<txp:permlink>
		</txp:permlink>
	</txp:upm_textile>
[ ~~~ secondpass ~~~ ]
 -->

we is experts™

Offline

#4 2009-04-02 22:21:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [textile] textile in excerpt ignoring laws of physics

I’ve always wanted an imaginary iPod :)

My guess is that it’s the &nbsp; preceding the first *, as far as I know it only works when there is no other character before the starting *.

Last edited by els (2009-04-02 22:23:00)

Offline

#5 2009-04-02 22:45:13

minusf
Member
Registered: 2005-02-15
Posts: 104

Re: [textile] textile in excerpt ignoring laws of physics

well, i’ll be damned…

copy_paste from wordpad…
just one time when i am not working from unix this kind of thing happens :]

i’d say it is still a bug in a way and the proper course of handling it would
be in my opinion to filter it out when saving the article and be replaced
with &nbsp; or perhaps a simple space (but i prefer the former)
this character in a web page is a fish out of water, it has nothing to do there.

incidentally i have once started a thread for a textile equivalent of &nbsp;.
unfortunately my favourite contender: ~ was already taken (but i personally
have never used it in textile, i think it was wasted). some languages, like most
slavic ones, make use of &nbsp; quite often actually but it’s also used in
english typography. unfortunately as far as i know there is still nothing like this
in textile. a shame shame really :[

i gave up soon in hunting this down, i hang my head in shame :]
you are the winner.


we is experts™

Offline

Board footer

Powered by FluxBB