• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

I realize this was already in Cairo, but, Render::getRenderedVersion added the following line:

    $text =~ s/$TWiki::TranslationToken/!/go;
Which results in plugins operating on text that has the verbatim blocks taken out loosing the verbatim, should they have to apply TWiki::Func::renderText. I believe this is not part of the specification of TWiki::Func::renderText. I'll set this to "Requirement".

Can somebody please motivate why we are doing this? At least, we should document in renderText that such is happening. I don't think, typically users are aware that the standard rendering function would destroy the verbatim that might occur (or other taken out stuff).

Could we at least give Render::getRenderedVersion a parameter that does not result in this effect if set?

Note that the current status forces plugins to have knowledge of the TWiki insides: We need to put the original $TranslationToken back in, and thus we need to

  • know the format of markers indicating removed text, such as verbatim markers
  • access $TWiki::TranslationToken .
All these is against the rules for plugins! --TW


Agreed; this is definitely a bug. --CC

ItemTemplate
Summary Render::getRenderedVersion converts translation token
ReportedBy TWiki:Main.ThomasWeigert
Codebase 4.0.2
SVN Range Sun, 18 Jun 2006 build 10637
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 10703
TargetRelease patch
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-07-03 - ThomasWeigert
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback