Tags:
create new tag
, view all tags
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: nobody $
  • $Date$ becomes $Date: 2005/06/19 18:33:49 $
  • $Header$ becomes $Header: /home/twiki/data/Codev/CannotUseDollarNameInTopicText.txt,v 1.6 2005/06/19 18:33:49 nobody Exp nobody $
  • $Id$ becomes $Id: CannotUseDollarNameInTopicText.txt,v 1.6 2005/06/19 18:33:49 nobody Exp nobody $
  • $Locker$ becomes $Locker: nobody $
  • $Log$ becomes $Log: CannotUseDollarNameInTopicText.txt,v $
  • $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.6 $
  • $Source$ becomes $Source: /home/twiki/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

Topic revision: r4 - 03 Mar 2005 - 10:09:22 - CrawfordCurrie
Codev.CannotUseDollarNameInTopicText moved from Codev.BugExpandingPerlVariable on 03 Mar 2005 - 08:55 by CrawfordCurrie - put it back
 
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