anammari / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Empty <ul> with --toc flag when no headers exist #199

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
# What steps will reproduce the problem?
    echo "ha" | pandoc --toc 

# What is the expected output? What do you see instead?

Expect an empty div#TOC div, or no div#TOC at all (I guess most people will 
want the former)
I get:

    <div id="TOC"
    ><ul
      ></ul
      ></div
    ><p
    >ha</p
    >

# What version of the product are you using? On what operating system?
pandoc 1.2.1, macOSX

Original issue reported on code.google.com by m3fi...@gmail.com on 8 Jan 2010 at 11:02

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1799.

Original comment by fiddloso...@gmail.com on 9 Jan 2010 at 3:13

GoogleCodeExporter commented 8 years ago
echo "ha" | pandoc -Ss --toc

still gives

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="generator" content="pandoc" />
  <meta name="date" content="" />
</head>
<body>
<div id="TOC"
><ul
  ></ul
  ></div
>
<p
>ha</p
>
</body>
</html>

in v1.4

Original comment by m3fi...@gmail.com on 14 Feb 2010 at 3:58

GoogleCodeExporter commented 8 years ago
Right - it's fixed in the repository, but still not part of the latest released 
version.
It will be fixed in the next release.

Original comment by fiddloso...@gmail.com on 14 Feb 2010 at 6:25