Your message dated Sun, 27 Nov 2005 14:02:57 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#340963: fixed in gtml 3.5.4-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 27 Nov 2005 12:47:06 +0000
>From [EMAIL PROTECTED] Sun Nov 27 04:47:06 2005
Return-path: <[EMAIL PROTECTED]>
Received: from vsmtp21.tin.it ([212.216.176.109])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1EgLvu-0004Dj-2X
        for [EMAIL PROTECTED]; Sun, 27 Nov 2005 04:47:06 -0800
Received: from porta (82.50.42.97) by vsmtp21.tin.it (7.2.060.1)
        id 4379E83B0021E838 for [EMAIL PROTECTED]; Sun, 27 Nov 2005 13:46:35 
+0100
Message-ID: <[EMAIL PROTECTED]> (added by [EMAIL PROTECTED])
Received: from [192.168.0.2] (forza [::ffff:192.168.0.2])
  by porta with esmtp; Sun, 27 Nov 2005 13:46:10 +0100
  id 000A6F48.4389AA93.00000FDD
Content-Type: multipart/mixed; boundary="===============0862656957=="
MIME-Version: 1.0
From: Flavio Stanchina <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: gtml: please add new command #includeliteral
X-Mailer: reportbug 3.17
Date: Sun, 27 Nov 2005 13:46:46 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-7.3 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        MSGID_FROM_MTA_HEADER autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02

This is a multi-part MIME message sent by reportbug.

--===============0862656957==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: gtml
Version: 3.5.4-1
Severity: wishlist
Tags: patch

The #include command will process GTML commands in the input file.
Therefore, it's not possible to include a file that contains lines
beginning with # (for example, shell scripts): one would need to alter
the included file and place a #literal command at the beginning, which
might not always be an option.

The attached patch adds an #includeliteral command that solves this
problem. Please apply.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (10, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.2-athlon
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages gtml depends on:
ii  perl                          5.8.7-7    Larry Wall's Practical Extraction 

gtml recommends no packages.

-- no debconf information

--===============0862656957==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gtml-includeliteral.patch"

diff -ur gtml-3.5.4-orig/debian/changelog gtml-3.5.4/debian/changelog
--- gtml-3.5.4-orig/debian/changelog    2005-11-27 12:45:54.000000000 +0100
+++ gtml-3.5.4/debian/changelog 2005-11-27 12:57:33.000000000 +0100
@@ -1,3 +1,10 @@
+gtml (3.5.4-1.1) experimental; urgency=low
+
+  * Add new command "#includeliteral"; note that I don't know Perl -- it
+    works, but it's probably ugly.
+
+ -- Flavio Stanchina <[EMAIL PROTECTED]>  Sun, 27 Nov 2005 12:57:21 +0100
+
 gtml (3.5.4-1) unstable; urgency=low
 
   * New upstream release and new upstream (http://sf.net/projects/gtml)
diff -ur gtml-3.5.4-orig/gtml gtml-3.5.4/gtml
--- gtml-3.5.4-orig/gtml        2004-10-29 15:43:23.000000000 +0200
+++ gtml-3.5.4/gtml     2005-11-27 12:52:34.000000000 +0100
@@ -1707,6 +1707,25 @@
 # ----------------------------------------------------------------------------
 # Process lines of a source file.
 
+sub ProcessLinesLiteral
+{
+    local ($iname) = @_;
+    local ($INFILE) = $filenum++;
+
+    if ( ! -r $iname )
+    {
+        &Error("`$iname' unreadable");
+        return;
+    }
+
+    open($INFILE, $iname);
+
+    while ( $_ = <$INFILE> )
+    {
+        print(OUTFILE $_);
+    }
+}
+
 sub ProcessLines
 {
     local ($iname) = @_;
@@ -1909,6 +1928,27 @@
         #
         # Included files.
         #
+        elsif ( /^#includeliteral/ )
+        {
+            chop;
+            if ( $compression ) 
+            { 
+                print(OUTFILE &CompressLines);
+            }
+
+            &Substitute();
+            s/^#includeliteral[ \t]*"//;
+            s/".*$//; #"
+            $file = $_;
+            $file = &ResolveIncludeFile($file);
+            $dependencies{$iname} .= "$file ";
+            if ( $file ne "" )
+            {
+# TODO #                &Notice("    --- $file\n");
+                &ProcessLinesLiteral($file);
+            }
+            next;
+        }
         elsif ( /^#include/ )
         {
             chop;

--===============0862656957==--

---------------------------------------
Received: (at 340963-close) by bugs.debian.org; 27 Nov 2005 22:11:15 +0000
>From [EMAIL PROTECTED] Sun Nov 27 14:11:15 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1EgUbp-0007HB-7p; Sun, 27 Nov 2005 14:02:57 -0800
From: Adam Majer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.60 $
Subject: Bug#340963: fixed in gtml 3.5.4-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sun, 27 Nov 2005 14:02:57 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: gtml
Source-Version: 3.5.4-2

We believe that the bug you reported is fixed in the latest version of
gtml, which is due to be installed in the Debian FTP archive:

gtml_3.5.4-2.diff.gz
  to pool/main/g/gtml/gtml_3.5.4-2.diff.gz
gtml_3.5.4-2.dsc
  to pool/main/g/gtml/gtml_3.5.4-2.dsc
gtml_3.5.4-2_all.deb
  to pool/main/g/gtml/gtml_3.5.4-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Majer <[EMAIL PROTECTED]> (supplier of updated gtml package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 27 Nov 2005 15:18:20 -0600
Source: gtml
Binary: gtml
Architecture: source all
Version: 3.5.4-2
Distribution: unstable
Urgency: low
Maintainer: Adam Majer <[EMAIL PROTECTED]>
Changed-By: Adam Majer <[EMAIL PROTECTED]>
Description: 
 gtml       - An HTML pre-processor
Closes: 340963
Changes: 
 gtml (3.5.4-2) unstable; urgency=low
 .
   * Added a patch to support #includeliteral support thanks to Flavio
     Stanchina. This is equivalent to putting #literal ON as first line of the
     include file and then #literal OFF as the last line which may not be
     possible for many files. (closes: #340963)
Files: 
 703285d612fef4d572bfcd92abc40644 553 web optional gtml_3.5.4-2.dsc
 7c2228ddbdcf5c65780f67264e48915a 3695 web optional gtml_3.5.4-2.diff.gz
 48aceba7dc9dd91d45f6a0fbcacd7c73 61348 web optional gtml_3.5.4-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDiiTR73/bNdaAYUURArNuAJ9P2HevlIDgXw5/hYuYOOIFLv2nLwCeLAbQ
KWq/Yzmfdj/RvUjtoFMYr2c=
=5wWF
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to