examples: add empty lines

Currently the examples are too dense, let's put empty lines where
'#line' would be issued.  And also remove some spurious empty
lines (remains from @group, @end group, etc.).

* examples/extexi: Do that.
* examples/local.mk (extexiFLAGS): Rename as...
(EXTEXIFLAGS): this.
This commit is contained in:
Akim Demaille
2018-08-19 17:34:27 +02:00
parent b610f43f25
commit 32e0fd1a99
2 changed files with 4 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ sub normalize($)
{
local ($_) = @_;
s/^\@(c |comment|dots|end (ignore|group)|ignore|group).*//mg;
s/^\@(c |comment|dots|end (ignore|group)|ignore|group).*\n//mg;
s/\@value\{VERSION\}/$ENV{VERSION}/g;
s/^\@(error|result)\{\}//mg;
s/\@([{}@])/$1/g;
@@ -103,6 +103,7 @@ sub process ($)
{
if (/^\@(small)?example$/)
{
$input .= "\n" unless defined $input;
# Bison supports synclines, but not Flex.
$input .= sprintf ("#line %s \"$in\"\n", $. + 1)
if $synclines && $file =~ /\.[chy]*$/;