bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#388396: texinfo: CSS @import bug in makeinfo


From: Werner Koch
Subject: Bug#388396: texinfo: CSS @import bug in makeinfo
Date: Wed, 20 Sep 2006 11:11:07 +0200

Package: texinfo
Version: 4.8.dfsg.1-2
Severity: normal
Tags: patch


The code to read a css file has an obvious bug:  A css file:
==============
@import url(foo);
==============

will end up as
==============
@mport url(foo);
==============

The fix is easy:


2006-09-20  Werner Koch  <address@hidden>

        * makeinfo/html.c (process_css_file): Fixed copying of @import


--- texinfo-4.8.dfsg.1/makeinfo/html.c~ 2006-09-20 10:58:05.000000000 +0200
+++ texinfo-4.8.dfsg.1/makeinfo/html.c  2006-09-20 10:44:20.000000000 +0200
@@ -108,6 +108,7 @@ process_css_file (char *filename)
               if (nextchar == 'i' || nextchar == 'c')
                 {
                   append_char (import_text, c);
+                  append_char (import_text, nextchar);
                   state = import_state;
                 }
               else


Seems it has never been tested ;-)



Shalom-Salam,

   Werner



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.2
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages texinfo depends on:
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries

texinfo recommends no packages.

-- no debconf information






reply via email to

[Prev in Thread] Current Thread [Next in Thread]