developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#428 closed bug (invalid)

Error in preprocessor when processing CSS ids

Reported by: azanetti Owned by: laurentj
Priority: high Milestone:
Component: tools:jBuildTools Version:
Severity: major Keywords:
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

The preprocessor throw a syntax error when it preprocesses CSS ids (eg. #myid {...})

There is an error in preprocessor.lib.php at line 277. It should be if(strlen($line)>1 && $line{0} == '#'){

Change History (2)

comment:1 Changed 13 years ago by laurentj

  • Resolution set to invalid
  • Status changed from new to closed

If you want to use a # at the begining of a line, you should duplicate it, so the preprocessor don't interpret it as an instruction.

And unfortunately, your correction remove this feature ;-)

An other solution is to insert a space before the #.

So it is an invalid bug.

comment:2 Changed 13 years ago by laurentj

Note: if the given file has not preprocessor instruction, and if you use manifest file, you can tell the builder to not use the preprocessor: write a ! before the name of the file in the manifest file.

Note: See TracTickets for help on using tickets.