Add a processing instruction which makes it possible to make .txt documents with out header and footer. --- xml2rfc | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) --- /usr/bin/xml2rfc 2004-09-30 11:12:05.000000000 +0200 +++ xml2rfc 2005-04-30 19:04:04.738412200 +0200 @@ -3234,6 +3234,7 @@ background "" \ comments no \ compact no \ + continuos no \ editing no \ emoticonic no \ footer "" \ @@ -3974,6 +3975,7 @@ foreach {o O} [list autobreaks .AUTOBREAKS \ compact .COMPACT \ comments .COMMENTS \ + continuos .CONTINUOS \ editing .EDITING \ emoticonic .EMOTICONIC \ inline .INLINE \ @@ -7165,23 +7167,35 @@ } proc start_page_txt {} { - global header footer lineno pageno blankP + global header footer lineno pageno blankP options - write_it $header - write_it "" + if {!$options(.CONTINUOS)} { + write_it $header + write_it "" + } write_it "" - set lineno 3 + if {!$options(.CONTINUOS)} { + set lineno 3 + } else { + set lineno 2 + } set blankP 1 } proc end_page_txt {} { - global header footer lineno pageno blankP + global header footer lineno pageno blankP options flush_text if {$lineno <= 3} { return } + + if {$options(.CONTINUOS)} { + set lineno 0 + return + } + while {$lineno < 54} { write_it "" incr lineno