Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-12-28 12:35:24

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 307
Website GitHub GitLab Twitter

[SOLVED] Buggy Textile (uppercase)

When a word in capital letters is enclosed in parentheses, Textile omits the closing span tag, e. g. (ISSN 2410-7190):

(<span class="caps">ISSN</span> 2410-7190)

Tested on Textile-lang.com, too.

How to disable completely this feature in the parser?

Offline

#2 2020-12-28 13:08:05

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: [SOLVED] Buggy Textile (uppercase)

Am I missing or misunderstanding something here ? As far as I can see, it works correctly, the string ISSN is wrapped in a pair of open/close <span />, as expected.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2020-12-28 14:42:49

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

Re: [SOLVED] Buggy Textile (uppercase)

If you’d like to remove that span, then in Textpattern 4.8.4 you can modify this file:

textpattern\vendors\Netcarver\Textile\Parser.php

Then just search for <span class="caps"> inside the file, and remove the opening and closing tag.

Offline

#4 2020-12-28 14:47:15

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: [SOLVED] Buggy Textile (uppercase)

Yep, what they said. Unless I’m missing something, that’s expected behaviour. It wraps <span class="caps">...</span> around just the uppercase letters. It’s not looking for numbers or brackets or anything else, just strings of 3 or more capital letters to wrap.

Last edited by Bloke (2020-12-28 14:47:36)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2020-12-28 17:56:38

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 307
Website GitHub GitLab Twitter

Re: [SOLVED] Buggy Textile (uppercase)

Oh, pardon, I am overlooked something, please excuse me and ignore this false-alarm post.

Offline

Board footer

Powered by FluxBB