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