Gestion des commentaires autres que #
darcs-hash:20080209022103-af139-f0b47e7ddf87a72c51f1728bb19d0056f98d5b4d.gz
This commit is contained in:
parent
1bb9fac1e4
commit
70cc56225b
1 changed files with 4 additions and 4 deletions
|
@ -26,16 +26,16 @@ sys.path.append('/usr/scripts/gestion')
|
|||
|
||||
def comment(line):
|
||||
'''Écrit un commentaire'''
|
||||
out("# " + line + "\n")
|
||||
out(comment_start + " " + line + "\n")
|
||||
|
||||
emacs_mode = "conf-unix"
|
||||
|
||||
def header(desc=None, mode=None):
|
||||
'''Écrit une en-tête de fichier avec un commentaire'''
|
||||
comment("-*- mode: %s; coding: utf-8 -*-" % (mode or emacs_mode))
|
||||
@#
|
||||
@# Fichier gere par BCfg2
|
||||
@#
|
||||
comment("")
|
||||
comment("Fichier gere par BCfg2 (avec le plugin Python)")
|
||||
comment("")
|
||||
if desc:
|
||||
lines = desc.split('\n')
|
||||
if lines[-1] == "":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue