@@ -510,7 +510,7 @@ def add_extension_modules_multiple out, store, modules # :nodoc:
510510    with . each  do  |incl |
511511      out  << RDoc ::Markup ::Paragraph . new ( incl . name ) 
512512      out  << RDoc ::Markup ::BlankLine . new 
513-       out  << incl . comment 
513+       out  << incl . comment . parse 
514514    end 
515515
516516    unless  wout . empty?  then 
@@ -534,7 +534,7 @@ def add_extension_modules_single out, store, include # :nodoc:
534534
535535    if  include . comment  then 
536536      out  << RDoc ::Markup ::BlankLine . new 
537-       out  << include . comment 
537+       out  << include . comment . parse 
538538    end 
539539  end 
540540
@@ -651,12 +651,12 @@ def class_document name, found, klasses, includes, extends
651651  ## 
652652  # Adds the class +comment+ to +out+. 
653653
654-   def  class_document_comment  out ,  comment  # :nodoc: 
655-     unless  comment . empty?  then 
654+   def  class_document_comment  out ,  document  # :nodoc: 
655+     unless  document . empty?  then 
656656      out  << RDoc ::Markup ::Rule . new ( 1 ) 
657657
658-       if  comment . merged?  then 
659-         parts  =  comment . parts 
658+       if  document . merged?  then 
659+         parts  =  document . parts 
660660        parts  =  parts . zip  [ RDoc ::Markup ::BlankLine . new ]  * parts . length 
661661        parts . flatten! 
662662        parts . pop 
@@ -681,7 +681,7 @@ def class_document_constants out, klass # :nodoc:
681681    constants  =  klass . constants . sort_by  {  |constant | constant . name  } 
682682
683683    list . items . concat  constants . map  {  |constant |
684-       parts  =  constant . comment . parts   if   constant . comment 
684+       parts  =  constant . comment . parse . parts 
685685      parts  << RDoc ::Markup ::Paragraph . new ( '[not documented]' )  if 
686686        parts . empty? 
687687
@@ -898,7 +898,7 @@ def display_page name
898898
899899    page  =  store . load_page  page_name 
900900
901-     display  page . comment 
901+     display  page . comment . parse 
902902  end 
903903
904904  ## 
@@ -1199,7 +1199,8 @@ def load_method store, cache, klass, type, name
11991199
12001200    store . load_method  klass ,  "#{ type } #{ method }  " 
12011201  rescue  RDoc ::Store ::MissingFileError  =>  e 
1202-     comment  =  RDoc ::Comment . new ( "missing documentation at #{ e . file }  " ) . parse 
1202+     comment  =  RDoc ::Comment . new ( "missing documentation at #{ e . file }  " ) 
1203+     comment . parse 
12031204
12041205    method  =  RDoc ::AnyMethod . new  nil ,  name 
12051206    method . comment  =  comment 
@@ -1361,21 +1362,21 @@ def parse_name name
13611362  # documentable items the class is added to +also_in+ instead. 
13621363
13631364  def  render_class  out ,  store ,  klass ,  also_in  # :nodoc: 
1364-     comment  =  klass . comment 
1365+     document  =  klass . comment . parse 
13651366    # TODO the store's cache should always return an empty Array 
13661367    class_methods     =  store . class_methods [ klass . full_name ]     || [ ] 
13671368    instance_methods  =  store . instance_methods [ klass . full_name ]  || [ ] 
13681369    attributes        =  store . attributes [ klass . full_name ]        || [ ] 
13691370
1370-     if  comment . empty?  and 
1371+     if  document . empty?  and 
13711372       instance_methods . empty?  and  class_methods . empty?  then 
13721373      also_in  << store 
13731374      return 
13741375    end 
13751376
13761377    add_from  out ,  store 
13771378
1378-     class_document_comment  out ,  comment 
1379+     class_document_comment  out ,  document 
13791380
13801381    if  class_methods  or  instance_methods  or  not klass . constants . empty?  then 
13811382      out  << RDoc ::Markup ::Rule . new ( 1 ) 
@@ -1423,16 +1424,16 @@ def render_method_comment out, method, alias_for = nil# :nodoc:
14231424    if  alias_for 
14241425      unless  method . comment . nil?  or  method . comment . empty? 
14251426        out  << RDoc ::Markup ::BlankLine . new 
1426-         out  << method . comment 
1427+         out  << method . comment . parse 
14271428      end 
14281429      out  << RDoc ::Markup ::BlankLine . new 
14291430      out  << RDoc ::Markup ::Paragraph . new ( "(This method is an alias for #{ alias_for . full_name }  .)" ) 
14301431      out  << RDoc ::Markup ::BlankLine . new 
1431-       out  << alias_for . comment 
1432+       out  << alias_for . comment . parse 
14321433      out  << RDoc ::Markup ::BlankLine . new 
14331434    else 
14341435      out  << RDoc ::Markup ::BlankLine . new 
1435-       out  << method . comment 
1436+       out  << method . comment . parse 
14361437      out  << RDoc ::Markup ::BlankLine . new 
14371438    end 
14381439  end 
0 commit comments