From: ianmdlvl Date: Mon, 31 Dec 2001 20:12:38 +0000 (+0000) Subject: Line breaking. X-Git-Tag: debian_version_2_2_0~33 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=574e0861ea27316499473f567e15e5ddf82d5b0f Line breaking. --- diff --git a/scripts/named-conf b/scripts/named-conf index a6d7df8..694ab94 100755 --- a/scripts/named-conf +++ b/scripts/named-conf @@ -117,13 +117,17 @@ sub read_config ($) { local ($_); $fh= new IO::File $if,'r' or cfg_fail("open $if:\n $!"); + $before= ''; for (;;) { if (!defined($_= <$fh>)) { cfg_fail("read config file $if:\n $!") if $fh->error(); last; } - $where= "$if:$."; s/^\s+//; chomp; s/\s+$//; + if (m/\\$/) { $before.= $_; next; } + $_= $before.$_; + $before= ''; + $where= "$if:$."; next if m/^\#/; last if m/^end$/; next unless m/\S/; diff --git a/scripts/named-conf.8 b/scripts/named-conf.8 index d4639f2..6e80aec 100644 --- a/scripts/named-conf.8 +++ b/scripts/named-conf.8 @@ -110,6 +110,10 @@ option) contains a sequence of directives, one per line. Blank lines are permitted. Leading and trailing whitespace on each line is ignored. Comments are lines starting with .BR # . +Ending a line with a +.BR \\ +joins it to the next line, so that long directives can be split across +several physical lines. .SS GENERAL DIRECTIVES These directives specify general configuration details. They should appear before directives specifying zones, as each will affect only