Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

Bug: Allow CSS classes in verbatim tags

Originally asked in Support.DisableRenderingInBlocks

I would like to have the option to have a CSS class assigned to a verbatim or pre tag, like:

<pre class="myclass">
my text
</pre>

Currently the class="myclass" is being parsed out.

In Render.pm::putBackBlocks is documented that this should be possible:

Parameters to the outermost cut block are replaced into the open tag, even if that tag is changed. This allows things like <verbatim class=""> to be mapped to <pre class="">
Perhaps the code does not work as advertised?

Test case

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- ArthurClemens - 20 Apr 2005

Impact and Available Solutions

Follow up

There is definitely a problem here. Looking into it.

-- CrawfordCurrie - 20 Apr 2005

Fix record

OK, fixed, along with a mountain of other stuff that it revealed.

There are still some instances in the code where the topic is parsed in a "non-standard" way. They should be tidied up over time, as we get testcases in place to make sure nothing breaks.

-- CrawfordCurrie - 20 Apr 2005

Discussion

What a speed! Great work.

-- ArthurClemens - 20 Apr 2005

 
Topic revision: r5 - 28 Aug 2008 - 19:53:48 - TWikiJanitor
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback