Index: c2man/nroff.c diff -c c2man/nroff.c:1.2 c2man/nroff.c:1.3 *** c2man/nroff.c:1.2 Sun Jan 30 15:22:15 2000 --- c2man/nroff.c Sun Jan 30 15:24:36 2000 *************** *** 253,259 **** if (islower(c) && state == CAPITALISE) c = toupper(c); state = TEXT; } ! output->character(c); new_line = c == '\n'; } --- 253,262 ---- if (islower(c) && state == CAPITALISE) c = toupper(c); state = TEXT; } ! ! /* escape tick at beginning of nroff output */ ! if (new_line && c == '\'') output->character('\\'); ! output->character(c); new_line = c == '\n'; } Index: c2man/test/README.newline_test diff -c /dev/null c2man/test/README.newline_test:1.1 *** /dev/null Sun Jan 30 16:12:22 2000 --- c2man/test/README.newline_test Sun Jan 30 15:24:40 2000 *************** *** 0 **** --- 1,39 ---- + With the nroff output you need to escape a tick ' at the beginning of + a line, because otherwise nroff does not prints the rest of the line. + Do not ask me if this is correct solution or if there are other + special characters you must escape, I am no nroff expert. + + In the nroff output the following + + 'blabla + + leads to no output. But + + \'blabla + + leads to the correct output + + 'blabla + + + The patch 'point_newline_fix.patch' fixes this and the capitalization + problem from the last mail. + + I used the source from + http://ftp.lh.umu.se/debian/dists/potato/main/source/devel/ + + c2man_2.41.orig.tar.gz + + with the patch + + c2man_2.41.diff.gz + + from the same ftp server applied. + + I added a directory 'test' with this text as README.point_test and the + example file point_test.h and one false and one corrected output + unix man page in it. + + Further there is now README.newline_test and the example file newline_test.h + and one false and one corrected output unix man page. + Index: c2man/test/newline_test.3_correct diff -c /dev/null c2man/test/newline_test.3_correct:1.1 *** /dev/null Sun Jan 30 16:12:22 2000 --- c2man/test/newline_test.3_correct Sun Jan 30 15:24:40 2000 *************** *** 0 **** --- 1,17 ---- + .\" WARNING! THIS FILE WAS GENERATED AUTOMATICALLY BY c2man! + .\" DO NOT EDIT! CHANGES MADE TO THIS FILE WILL BE LOST! + .TH "newline_test" 3 "26 November 1999" "c2man newline_test.h" + .SH "NAME" + newline_test \- test the treatment of '.' at the beginning of a line by c2man. + .SH "SYNOPSIS" + .ft B + #include + .sp + extern void newline_test(void); + .ft R + .SH "DESCRIPTION" + This is a sentence with ticks '.' in the middle and ticks + \'.' at the beginning of a line. + When nothing goes wrong c2man should not earese the lines + above. + I hope I have not added any side effects. Index: c2man/test/newline_test.3_false diff -c /dev/null c2man/test/newline_test.3_false:1.1 *** /dev/null Sun Jan 30 16:12:22 2000 --- c2man/test/newline_test.3_false Sun Jan 30 15:24:40 2000 *************** *** 0 **** --- 1,17 ---- + .\" WARNING! THIS FILE WAS GENERATED AUTOMATICALLY BY c2man! + .\" DO NOT EDIT! CHANGES MADE TO THIS FILE WILL BE LOST! + .TH "newline_test" 3 "26 November 1999" "c2man newline_test.h" + .SH "NAME" + newline_test \- test the treatment of '.' at the beginning of a line by c2man. + .SH "SYNOPSIS" + .ft B + #include + .sp + extern void newline_test(void); + .ft R + .SH "DESCRIPTION" + This is a sentence with ticks '.' In the middle and ticks + '.' At the beginning of a line. + When nothing goes wrong c2man should not earese the lines + above. + I hope I have not added any side effects. Index: c2man/test/newline_test.h diff -c /dev/null c2man/test/newline_test.h:1.1 *** /dev/null Sun Jan 30 16:12:22 2000 --- c2man/test/newline_test.h Sun Jan 30 15:24:40 2000 *************** *** 0 **** --- 1,9 ---- + /* + * test the treatment of '.' at the beginning of a line by c2man. + * This is a sentence with ticks '.' in the middle and ticks + * '.' at the beginning of a line. + * When nothing goes wrong c2man should not earese the lines + * above. + * I hope I have not added any side effects. + */ + extern void newline_test();