From: Mark M. <mar...@mc...> - 2002-10-09 21:04:36
|
Hi, I have this text: <text> Heading 1 ========= All my life, I wanted to be H1. Heading 1.1 ----------- But along came H1, and so now I must be H2. Heading 1.1.1 ************* Yeah, imagine me, I'm stuck at H3! </text> (excluding the <text> start and end tags.) When I run it through tools/html.py, I get unexpected results (below). I was expecting H1, H2, then H3; instead, I get H1, H1, H2. Thanks, // mark <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.2.5: http://docutils.sourceforge.net/" /> <title>Heading 1</title> <link rel="stylesheet" href="default.css" type="text/css" /> </head> <body> <div class="document" id="heading-1"> <h1 class="title">Heading 1</h1> <p>All my life, I wanted to be H1.</p> <div class="section" id="heading-1-1"> <h1><a name="heading-1-1">Heading 1.1</a></h1> <p>But along came H1, and so now I must be H2.</p> <div class="section" id="heading-1-1-1"> <h2><a name="heading-1-1-1">Heading 1.1.1</a></h2> <p>Yeah, imagine me, I'm stuck at H3!</p> </div> </div> </div> </body> </html> - |