You cannot use RCS keywords in a topic. This is because RCS keyword substitution will expand it to something different when the topic is saved. All the following get munged:
  • $Author$ becomes $Author: TWikiJanitor $
  • $Date$ becomes $Date: 2008/09/10 04:46:15 $
  • $Header$ becomes $Header: /var/www/twiki-shared/data/Codev/CannotUseDollarNameInTopicText.txt,v 1.7 2008/09/10 04:46:15 TWikiJanitor Exp $
  • $Id$ becomes $Id: CannotUseDollarNameInTopicText.txt,v 1.7 2008/09/10 04:46:15 TWikiJanitor Exp $
  • $Locker$ becomes $Locker: $
  • $Log$ becomes $Log: CannotUseDollarNameInTopicText.txt,v $
  • $Log$ becomes Revision 1.7 2008/09/10 04:46:15 TWikiJanitor
  • $Log$ becomes none
  • $Log$ becomes
  • $Log$ becomes Revision 1.6 2005/06/19 18:33:49 nobody
  • $Log$ becomes testenv
  • $Log$ becomes
  • $Log$ becomes Revision 1.5 2005/05/17 11:09:45 admin2
  • $Log$ becomes testenv
  • $Log$ becomes
  • $Log$ becomes Revision 1.4 2005/03/03 10:09:22 CrawfordCurrie
  • $Log$ becomes none
  • $Log$ becomes
  • $Name$ becomes $Name: $
  • $RCSfile$ becomes $RCSfile: CannotUseDollarNameInTopicText.txt,v $
  • $Revision$ becomes $Revision: 1.7 $
  • $Source$ becomes $Source: /var/www/twiki-shared/data/Codev/CannotUseDollarNameInTopicText.txt,v $
  • $State$ becomes $State: Exp $

Note that the change is not happening during preview; the previewed text looks OK. It's only when the topic is actually saved that it happens.

I have fixed the code so that any new topics will be correctly initialised with the right RCS options. Existing topics can be fixed from the command line using rcs -ko TopicName.txt,v. If the string expand @o@ is present in the ,v file, keyword substition is off. Otherwise it is on.

This fix has required the addition of a new $cfg option:

 $cfg{RCS}{initTextCmd} = "$rcs/rcs $ext -q -i -t-none -ko %FILENAME|F%"; 

DevelopBranch r3722

-- CrawfordCurrie - 21 Feb 2005

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2008-09-10 - TWikiJanitor
 
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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.