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

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-08-28 - TWikiJanitor
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.