- Timestamp:
- 06/09/08 11:55:56 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/idldoc/src/parser/docparrstmarkupparser__define.pro
r489 r494 67 67 68 68 69 ;+ 70 ; Substitute correct codes for less than, greater than, and other signs. 71 ; 72 ; :Returns: 73 ; string 74 ; 75 ; :Params: 76 ; line : in, required, type=string 77 ; line to process 78 ;- 79 function docparrstmarkupparser::_processText, line 80 compile_opt strictarr 81 82 output = '' 83 84 for pos = 0L, strlen(line) - 1L do begin 85 ch = strmid(line, pos, 1) 86 case ch of 87 '<': output += '<' 88 '>': output += '>' 89 else: output += ch 90 endcase 91 endfor 92 93 return, output 94 end 95 96 69 97 pro docparrstmarkupparser::_handleLevel, lines, start, indent, tree=tree, file=file 70 98 compile_opt strictarr … … 97 125 endif else begin 98 126 if (code && (currentIndent eq -1 || currentIndent gt indent)) then begin 99 listing->addChild, obj_new('MGtmText', text=s trmid(cleanline, indent))127 listing->addChild, obj_new('MGtmText', text=self->_processText(strmid(cleanline, indent))) 100 128 listing->addChild, obj_new('MGtmTag', type='newline') 101 129 endif else begin 102 para->addChild, obj_new('MGtmText', text= cleanline)130 para->addChild, obj_new('MGtmText', text=self->_processText(cleanline)) 103 131 para->addChild, obj_new('MGtmTag', type='newline') 104 132 code = 0B
