Defect #15920 ยป migrate_from_trac.codeblock.patch
| migrate_from_trac.rake.codeblock 2014-01-21 16:18:31.830335105 +0100 | ||
|---|---|---|
| 327 | 327 |
# We would like to convert the Code highlighting too |
| 328 | 328 |
# This will go into the next line. |
| 329 | 329 |
shebang_line = false |
| 330 |
# Reguar expression for start of code |
|
| 331 |
pre_re = /\{\{\{/
|
|
| 332 |
# Code hightlighing...
|
|
| 330 |
# Regluar expression for start of code
|
|
| 331 |
pre_re = /^\s*\{\{\{\s*$/
|
|
| 332 |
# Code highlighting...
|
|
| 333 | 333 |
shebang_re = /^\#\!([a-z]+)/ |
| 334 | 334 |
# Regular expression for end of code |
| 335 |
pre_end_re = /\}\}\}/
|
|
| 335 |
pre_end_re = /^\s*\}\}\}\s*$/
|
|
| 336 | 336 |
|
| 337 | 337 |
# Go through the whole text..extract it line by line |
| 338 | 338 |
text = text.gsub(/^(.*)$/) do |line| |