Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Textile fails with percentage-values in span
Hi!
I am talking about this: <notextile>Introduction </notextile>.
If you input this textile-formatted sequence in textism, it outputs the right thing:
<p><span style="font-size:180%;">Introduction</span></p>
If you input this textile-formatted sequence in Textpattern (4.0.3.: r1188), you get this:
<p><span>{font-size:180</span>Introduction%</p>
Hmmmm….
Offline
#2 2006-01-10 21:53:32
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Textile fails with percentage-values in span
Works fine for me with r1210.
Alex
Offline
#3 2006-01-10 22:04:27
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Textile fails with percentage-values in span
So can we just copy classTextile.php from here to solve this?
Offline
#4 2006-01-10 22:17:30
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
#5 2006-01-10 22:21:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Textile fails with percentage-values in span
Thanks, Alex.
Offline
Re: Textile fails with percentage-values in span
I ran into the same result but with the following Textile syntax:
<pre><code>%(myStyle)The text I want spanned%</code></pre>
Textile (the version that ships with TXP 4.0.3) turns it into:
<pre><code><span>(myStyle)The text I want spanned</span></code></pre>
I downloaded the Textile file mentioned by Zem and this version functions properly. I have replicated the behavior in a couple of different sites that I had upgraded to 4.0.3.
Offline
Re: Textile fails with percentage-values in span
I see the same problem jdykast has. Used to work fine. Now I’m running 4.0.3, and upgrading to r1228 doesn’t change it.
Offline
#8 2006-01-19 20:45:00
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Textile fails with percentage-values in span
I can’t reproduce this. Works fine with r1228.
Did you re-save the article after updating? Textile is only run when you save.
Alex
Offline
Re: Textile fails with percentage-values in span
The below used to make a lovely UL with class=“nobullet” and lots of spans with class=“smallcaps” and the titles in parentheses used to be in italics. UL still works; spans and italics have been broken since 4.0.3; span fixed with most recent classTextile.php — but not italics, unless I put a space after the opening parenthesis, but I don’t want that space to show up in the output.
I got the span and italics issues mixed up when I posted, I guess.
- Bellini: Oh! quante volte† (I Capuleti e i Montecchi)<br />Ah! non credea mirarti … Ah! non giunge† (La sonnambula)
- Boito: L’altra notte in fondo al mare† (Mefistofele)
- Catalani: Ebben? Ne andrò lontana† (La Wally)
- Cavalli: Piante ombrose (La Calisto)
- Cesti: Che mi consigli, Amor? (Il Tito)
- Cilea: Io son l’umile ancella† • Poveri fiori (Adriana Lecouvreur)
- Cimarosa: Dovrei punirti (Il marito disperato)
Edit: The above gets processed by this board’s Textile okay, as I can see the italics! But I can’t figure out how to turn it off.
Edit 2: Thanks, but above is too complex, even with more info on code blocks. See http://pastebin.com/520740
Last edited by kevinashworth (2006-01-24 16:17:16)
Offline
#10 2006-01-23 22:52:35
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
#11 2006-02-24 17:50:25
- semanio
- Member
- Registered: 2005-10-18
- Posts: 20
Re: Textile fails with percentage-values in span
Zem,
I think I might have found 1 more issue with the % span markup in. I downloaded the 1228 version of classTextile.php and installed it to get the % span markup working just the other day. I’ve found that the span markup % works everywhere except right inside a () mark-up.
For example:
my text (%(className)wrappedText%)
The above does not work at all… same goes with the (emote _ markup etc) for Textile is wanting some space between the starting and ending () I guess.
<br />
So that go me thinking and I came up with the following solution that works:
my text (<span>%(className)wrappedText%</span>)
The last example works as it should so the <span> allows me to not have an extra space and do the Textile code properly.
Does any of that make sense? I tried to explain it the best I could.
Last edited by semanio (2006-02-24 17:57:16)
Offline
#12 2006-02-24 22:18:18
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Textile fails with percentage-values in span
(%(className)wrappedText%)
I wouldn’t expect that to work, but with r1228 I think ([%(className)wrappedText%]) will. See this FAQ for a quick explanation of the square bracket syntax.
Alex
Offline