tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

nroff -mdoc2html against triangle brackets



'nroff -mdoc2html' doesn't replace triangle brackets to html equivalents,
i.e. it generates an incorrect HTML page.
See below for '=>' marker. Send PR?
Maybe other symbols are not converted too.

    0 tmp>cat test.1 
    .\" ------------------------------------------------------------------
    .TH TEST 1 "Dec 29, 2009" "" ""
    .SH NAME
    test
    .SH EXAMPLE
    <test>
    0 tmp>nroff -mdoc2html test.1 > test1.html
    0 tmp>cat test1.html
    <html>
    <head>
        <title>
                TEST 1 Dec 29, 2009

        </title>
        <style type="text/css">
        <!--
                body { margin-left:4%; }
                H1, H2, H3, H4, H5 {
                        color: maroon; padding: 4pt; margin-left: -4%;
                        border: solid; border-width: thin; width: 100%;
                        background: rgb(204,204,255)
                }
        -->
        </style>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <h3 id="NAME"> NAME </h3>
    test
    <h3 id="EXAMPLE"> EXAMPLE </h3>
=>  <test>
    </body>
    </html>
    0 tmp>

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index