狮身人面像编号列表未显示为列表

Posted

技术标签:

【中文标题】狮身人面像编号列表未显示为列表【英文标题】:Sphinx numbered list not being shown as a list 【发布时间】:2012-02-16 17:12:51 【问题描述】:

我的 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

看到

有谁知道为什么会发生这种情况,或者我可以做些什么来阻止它发生?

【问题讨论】:

我看不到你的例子了。 【参考方案1】:

如果您删除第一个列表项中逗号后的换行符,它应该可以工作:

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::

【讨论】:

另外,不要忘记您可以使用带有#. 的自动编号列表代替1.2. 等。

以上是关于狮身人面像编号列表未显示为列表的主要内容,如果未能解决你的问题,请参考以下文章

如何将项目和按钮添加为编号列表

Extjs HtmlEditor - 编号列表和项目符号列表

在word2010中的多级列表中第一级自动编号变成黑条,不显示序号。

如何将编号列表切片为子列表

解决Word中出现的多级列表编号不显示的问题

Word 多级列表