On Saturday, May 18, 2013 7:48:34 PM UTC+8, Terry wrote:

> At first I thought that the rst was invalid, but the docs. say 
>   The underline/overline must be at 
>   least as long as the title text. 
>
> http://docutils.sourceforge.net/docs/user/rst/quickref.html#section-structure 
> so I guess it's not.  But leo has nowhere to store the length of the 
> underlining.  Also, this is related to the issue where Leo changes the 
> underline characters used, e.g. = -> - and * -> # etc. 
>
Hi, Terry, thanks for your explanations :-)


> I think the easiest solution is going to be to do the import and just 
> remove the @ignore afterwards, checking that there are no changes that 
> matter.  Perhaps the wording of the @ignore message could make it 
> clearer that the import may not have failed, but just needs checking. 
>
But in fact, the @auto-rst load this rst file like @auto, no @ignore node 
at all.

My import procedure is like this:
1. make a node name:
@auto-rst models.txt
2. right click it, and select "refresh from disk"


And I just find another problem...
If the rst file like this:

MLP
===

It also occurs error:

reading: @auto-rst models.txt

Error: @auto did not import @auto-rst models.txt perfectly
The clean-all-lines command may help fix whitespace problems
first mismatched line: 10 (original) = 10 (imported)

Original file...

   8 u'    :members:\n'
   9 u'MLP\n'
  10 u'===\n'
  11 u'.. automodule:: pylearn2.models.mlp\n'
  12 u'    :members:\n'

Imported file...

   8 u'    :members:\n'
   9 u'MLP\n'
  10 u'====\n'
  11 u'.. automodule:: pylearn2.models.mlp\n'
  12 u'    :members:\n'

inserting @ignore

errors inhibited read @auto 
D:\OpenCourses\ufldl\ref\pylearn2\doc\library\models.txt

reading entire file into @auto node.

reading: @edit models.txt

finished

It says I need a extra "="...

I have attached this file, for someone has interest to reproduce the error.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


======
Models
======

.. contents::
   :depth: 2

Models Base Class
=================
.. automodule:: pylearn2.models.model
    :members:

MLP
===
.. automodule:: pylearn2.models.mlp
    :members:

RBM
===
.. automodule:: pylearn2.models.rbm
    :members:

DBM
===
.. automodule:: pylearn2.models.dbm
    :members:

Auto Encoder
============
.. automodule:: pylearn2.models.autoencoder
    :members:

Maxout
======
.. automodule:: pylearn2.models.maxout
    :members:

Reply via email to