diff options
author | wlemb <wlemb> | 2001-06-18 22:37:32 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-06-18 22:37:32 +0000 |
commit | 3492e694b5f6faf451ba4c08f5ba75b604227468 (patch) | |
tree | bea8871fb7c4cebc424662ad72b1639f94e85b73 /tmac | |
parent | 84e37c953ca4daf9e861f964e8aaba9d6bb11ce1 (diff) | |
download | groff-3492e694b5f6faf451ba4c08f5ba75b604227468.tar.gz |
Added two new options (-D and -I) to specify image names and a
subdirectory to place the images in.
Change syntax from \Ox to \O[x].
* src/devices/grohtml/post-html.cc (main): Add options.
(usage): Updated.
* src/preproc/html/pre-html.cc: Include `stdarg.h'.
Use `NULL' instead of `0' for null string pointers.
(MAX_RETRIES): New macro.
(lengthOfintToStr, intToStr, make_message): New functions.
(makeFileName): Make function static.
Implement -D and -I options.
(checkImageDir): New function.
(write_end_image, write_start_image): Use new syntax of O.
(createAllPages, removeAllPages): Implement -D and -I options. Use
make_message().
(createImage): Use make_message().
(addps4html): Add guard for malloc().
(usage, scanArguments): Updated.
(makeTempFiles): Use mkstemp().
(removeTempFiles): Use unlink().
(findPrefix): Add guard for malloc().
(main): Updated.
* src/roff/troff/input.cc (get_delim_file_name): New function to
parse O.
(do_suppress): Updated to parse new syntax.
* src/devices/grohtml/grohtml.man: Updated.
* tmac/www.tmac: Updated to new syntax.
* NEWS: Updated.
Diffstat (limited to 'tmac')
-rw-r--r-- | tmac/www.tmac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tmac/www.tmac b/tmac/www.tmac index 8358c868..808c6271 100644 --- a/tmac/www.tmac +++ b/tmac/www.tmac @@ -159,19 +159,19 @@ . image \\$2 \\$1.png . bp . tl '''' -\O0\O1 +\O[0]\O[1] . \} . if \\n[www-html] .begin \{ . image \\$2 \\$1.png -\O0 +\O[0] . \} .. .\" .\" HTML-IMAGE-END - terminates an image for html .\" .de HTML-IMAGE-END -. if r ps4html \O2\O1\O4 -. if \\n[www-html] \O2\O1\O4 +. if r ps4html \O[2]\O[1]\O[4] +. if \\n[www-html] \O[2]\O[1]\O[4] .. .nr png-no 0 .\" |