[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: @media in --css-include file
From: |
Karl Berry |
Subject: |
Re: @media in --css-include file |
Date: |
Sat, 26 Jul 2003 20:04:29 -0400 |
changed a bit such that if a @media appears the state switches to
inline_state and the @media is put in inline_text.
I agree. Thanks for the report, here's a patch.
k
*** html.c.~1.18.~ Mon Jun 2 05:32:29 2003
--- html.c Sat Jul 26 17:02:09 2003
***************
*** 204,215 ****
{
case null_state: /* between things */
if (c == '@')
! {
! /* If there's some other @command, just call it an
! import, it's all the same to us. So don't bother
! looking for the `import'. */
! append_char (import_text, c);
! state = import_state;
}
else if (c == '/')
{ /* possible start of a comment */
--- 204,224 ----
{
case null_state: /* between things */
if (c == '@')
! { /* Only an @import should switch into import_state, other
! @-commands, such as @media, should put us into
! inline_state. I don't think any other css @-commands
! start with `i'. */
! int nextchar = getc (f);
! if (nextchar == 'i')
! {
! append_char (import_text, c);
! state = import_state;
! }
! else
! {
! ungetc (nextchar, f); /* wasn't an @import */
! state = inline_state;
! }
}
else if (c == '/')
{ /* possible start of a comment */