Changeset 685

Show
Ignore:
Timestamp:
09/03/10 16:23:27 (21 months ago)
Author:
mgalloy
Message:

Fixed rst markup parser to handle headings in non .idldoc files, i.e., ones that the comments have proceeding ;'s and spaces.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/parser/docparrstmarkupparser__define.pro

    r666 r685  
    257257      header_level = 0 
    258258       
    259       if (lines[l] eq string(replicate(byte('='), lastLineLength))) then begin 
     259      if (strmid(lines[l], lastLineStart) eq string(replicate(byte('='), lastLineLength - lastLineStart))) then begin 
    260260        header_level = 1 
    261261      endif 
     
    340340     
    341341    lastLineLength = strlen(lines[l]) 
     342    lastLineStart = stregex(lines[l], '[^[:space:]]') 
    342343  endfor   
    343344end