Activity log for bug #882925

Date Who What changed Old value New value Message
2011-10-28 05:55:26 jimav bug added bug
2011-10-28 05:56:11 jimav attachment added BugDemo.sh https://bugs.launchpad.net/ubuntu/+source/groff/+bug/882925/+attachment/2576224/+files/BugDemo.sh
2011-10-28 06:00:01 jimav description Text generated by an end-of-input macro trap (set with .em) can not extend beyond the current page. That is, if it does the output which should appear in subsequent pages is lost. It is unclear why the end-of-input trap is not called the same way as any other trap, with the same behavior as if the macro were called explicitly by the last line of user input. For some reason, the end-of-page machinery is not working by the time the .em trap is sprung. I will attach a simple demo program. The output should contain 100+ lines, but it stops after 65 lines: #!/bin/sh nroff <<'EOF' | cat -s .de EndOfInput . nf . nr Max 100 . nr i 1 . while \\n[i]<=\\n[Max] \{\ . nop Generated line \\n[i] . nr i \\n[i]+1 . \} ---AFTER genreated lines--- .. .em EndOfInput Main Text EOF ProblemType: Bug DistroRelease: Ubuntu 10.10 Package: groff-base 1.20.1-10 ProcVersionSignature: Ubuntu 2.6.35-30.61-generic 2.6.35.13 Uname: Linux 2.6.35-30-generic x86_64 Architecture: amd64 Date: Thu Oct 27 22:39:05 2011 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928) ProcEnviron: PATH=(custom, user) LANG=en_US.utf8 SHELL=/bin/bash SourcePackage: groff Text generated by an end-of-input macro trap (set with .em) can not extend beyond the current page. That is, if it does the output which should appear in subsequent pages is lost. It is unclear why the end-of-input trap is not called with the same behavior as if the macro were called explicitly by the last line of user input. For some reason, the end-of-page machinery is not working by the time the .em trap is sprung, or else there is an inherent limitation of -all- traps which prevents generating multiple pages. I will attach a simple demo program. The output should contain 100+ lines, but it stops after 65 lines: #!/bin/sh nroff <<'EOF' | cat -s .de EndOfInput . nf . nr Max 100 . nr i 1 . while \\n[i]<=\\n[Max] \{\ . nop Generated line \\n[i] . nr i \\n[i]+1 . \} ---AFTER genreated lines--- .. .em EndOfInput Main Text EOF ProblemType: Bug DistroRelease: Ubuntu 10.10 Package: groff-base 1.20.1-10 ProcVersionSignature: Ubuntu 2.6.35-30.61-generic 2.6.35.13 Uname: Linux 2.6.35-30-generic x86_64 Architecture: amd64 Date: Thu Oct 27 22:39:05 2011 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928) ProcEnviron:  PATH=(custom, user)  LANG=en_US.utf8  SHELL=/bin/bash SourcePackage: groff