我在doc / source目录的.rst文件中有以下Sphinx代码:
Installing
----------
1. Get hold of a Fortran 77 compiler for your platform. For Windows try Fort99 (http://www.cse.yorku.ca/~roumani/fortran/ftn.htm) or Cygwin (http://www.cygwin.com/),
for OS X try the g77 compiler from the HPC Mac OSX project (http://hpc.sourceforge.net/) and for Linux you should be able to install g77 or equivalent from your package manager.
2. Install the compiler, move to the directory containing the 6S .f files and run ``make``
3. Check the resulting executable is working correctly by passing it one of the example input files, for example::
但是,当我生成文档时,编号列表在项目之间没有任何换行符,作为一个长段落。生成的HTML文件可以在http://dl.dropbox.com/u/315580/introduction.html
中看到有没有人知道为什么会这样,或者我能做些什么来阻止它发生?
答案 0 :(得分:3)
如果删除第一个列表项中逗号后面的换行符,它应该有效:
Installing
----------
1. Get hold of a Fortran 77 compiler for your platform. For Windows try Fort99 (http://www.cse.yorku.ca/~roumani/fortran/ftn.htm) or Cygwin (http://www.cygwin.com/), for OS X try the g77 compiler from the HPC Mac OSX project (http://hpc.sourceforge.net/) and for Linux you should be able to install g77 or equivalent from your package manager.
2. Install the compiler, move to the directory containing the 6S .f files and run ``make``
3. Check the resulting executable is working correctly by passing it one of the example input files, for example::
您还可以拥有多行列表项,如下所示:
Installing
----------
1. Get hold of a Fortran 77 compiler for your platform.
For Windows try Fort99 (http://www.cse.yorku.ca/~roumani/fortran/ftn.htm) or Cygwin (http://www.cygwin.com/), for OS X try the g77 compiler from the HPC Mac OSX project (http://hpc.sourceforge.net/) and for Linux you should be able to install g77 or equivalent from your package manager.
2. Install the compiler, move to the directory containing the 6S .f files and run ``make``
3. Check the resulting executable is working correctly by passing it one of the example input files, for example::