Changeset 80


Ignore:
Timestamp:
Sep 2, 2009 1:16:04 PM (10 years ago)
Author:
prjemian
Message:

trim the dollar signs from the SVN ID when it is used inside an XML element of the result (avoids later modification by version control if the data file is put under version control)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 1dwg/trunk/php/xmlWriter/index.php

    r79 r80  
    215215        addElement($doc, $body, 'br'); 
    216216 
    217         $small = addTextElement($doc, $body, 'small', $tool['svnid']); 
     217        $idstr = trim(trim($tool['svnid'], "\$")); 
     218        $small = addTextElement($doc, $body, 'small', $idstr); 
    218219 
    219220        addComment($doc, $body, ' end footer '); 
     
    299300        addTextElement($doc, $sasprocess, 'date', PRJ_mysqlDate('now') ); 
    300301 
    301         $node = addTextElement($doc, $sasprocess, 'SASprocessnote', $tool['svnid']); 
     302        $idstr = trim(trim($tool['svnid'], "\$")); 
     303        $node = addTextElement($doc, $sasprocess, 'SASprocessnote', $idstr); 
    302304        addAttribute($node, 'name', 'svnid'); 
    303305 
Note: See TracChangeset for help on using the changeset viewer.