aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandocdb.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-07 00:23:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-07 00:23:04 +0000
commit1ba049268ba27c22e168cd033b2e9c9f66c04eb8 (patch)
treea6ceb9d2fa99e7888ecd3d01c79afff3e1c6cdfe /mandocdb.c
parenta52986abaf6c9a2e467495abd57e7af8eee740a6 (diff)
downloadmandoc-1ba049268ba27c22e168cd033b2e9c9f66c04eb8.tar.gz
mandoc-1ba049268ba27c22e168cd033b2e9c9f66c04eb8.tar.zst
mandoc-1ba049268ba27c22e168cd033b2e9c9f66c04eb8.zip
Add cat2html functionality. This keeps track of italic/bold mode per line
and properly handles some funny troff-isms we've exposed. I originally wanted to use man2html.c (found on W3's website with no known author) but the code is dodgy. This will need some more work (links, etc.) but does a decent job thusfar. Note: I think it's better style NOT to use <pre>, and instead have each line employ <BR> afterward. This allows browsers to break the lines if necessary. This can be changed trivially (replacing the newline and pre tags with the <BR> and new tag).
Diffstat (limited to 'mandocdb.c')
0 files changed, 0 insertions, 0 deletions