Changeset 807

Show
Ignore:
Timestamp:
06/12/12 15:53:50 (11 months ago)
Author:
mgalloy
Message:

Using MG_ESCAPE_LATEX everywhere for escaping LaTeX code for consistency.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/RELEASE

    r806 r807  
    1717  tag is for a list of files or routines optionally separated by commas, plain  
    1818  text will have commas inserted between words. 
     19 
     20* Fixed errors in LaTeX output. 
    1921 
    2022 
  • trunk/src/parser/docparrstmarkupparser__define.pro

    r799 r807  
    151151    tag = obj_new('MGtmTag', type='link')     
    152152    tag->addAttribute, 'reference', reference     
    153     tag->addChild, obj_new('MGtmText', text=link_text) 
     153    tag->addChild, obj_new('MGtmText', text=self->_processText(link_text)) 
    154154    para->addChild, tag 
    155155     
     
    186186  switch commentstyle of 
    187187    'latex': begin 
    188         for pos = 0L, strlen(line) - 1L do begin 
    189           ch = strmid(line, pos, 1) 
    190           case ch of 
    191             '_': output += keyword_set(code) ? '_' : '\_' 
    192             '$': output += keyword_set(code) ? '$' : '\$' 
    193             '%': output += keyword_set(code) ? '%' : '\%' 
    194             '#': output += keyword_set(code) ? '#' : '\#' 
    195             '&': output += keyword_set(code) ? '&' : '\&' 
    196             '^': output += keyword_set(code) ? '^' : '\verb+^+' 
    197             '\': output += keyword_set(code) ? '\' : '\verb+\+' 
    198             '~': output += keyword_set(code) ? '~' : '\verb+~+' 
    199             '{': output += keyword_set(code) ? '{' : '\{' 
    200             '}': output += keyword_set(code) ? '}' : '\}' 
    201             else: output += ch 
    202            endcase 
    203         endfor 
     188        output = mg_escape_latex(line, code=code) 
    204189        break       
    205190      end