Changeset 200
- Timestamp:
- 05/23/05 06:57:44 (4 years ago)
- Files:
-
- 1 modified
-
branches/simplest-thing/tools/convertWikiPage.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simplest-thing/tools/convertWikiPage.rb
r199 r200 102 102 newContent = transformHrules( newContent ) 103 103 newContent = transformAnchors( newContent ) 104 newContent = transformCommentFooters( newContent ) 104 105 105 106 newContent = transformOtherIdiosyncrasies( newContent ) … … 235 236 end 236 237 238 239 CommentFooter = %r{^--\s*(.*?)(?:<br\s*/?>)?$}i 240 241 ### Transform the version change comments at the bottom of the page, e.g., 242 ### '-- Ged The Greys Hain - 16 May 2000 <br>' 243 def transformCommentFooters( content ) 244 content.gsub( CommentFooter ) {|match| 245 comment = $1.strip 246 newComment = "â %s[[br]]" % [comment.gsub(%r{</?\w+>}, '')] 247 debugMsg "Transforming comment footer %p -> %p" % [match, newComment] 248 newComment 249 } 250 end 251 252 237 253 Anchor = %r{<a href="(.*?)">(.*?)</a>}i 238 254
