Browse Source

Changement de la syntaxe des commentaires en une ligne

En référence à 11add71d84 (commitcomment-5892584)
pull/22/head
Louis 11 years ago
parent
commit
d4195414ea
  1. 38
      songbook_core/data/templates/default.tex
  2. 40
      songbook_core/data/templates/layout.tex
  3. 38
      songbook_core/data/templates/patacrep.tex
  4. 38
      songbook_core/data/templates/songs.tex
  5. 2
      songbook_core/templates.py

38
songbook_core/data/templates/default.tex

@ -1,22 +1,22 @@
(%%) Copyright (C) 2014 The Songbook team (www.patacrep.com)
(%%)
(%%) This program is free software; you can redistribute it and/or
(%%) modify it under the terms of the GNU General Public License
(%%) as published by the Free Software Foundation; either version 2
(%%) of the License, or (at your option) any later version.
(%%)
(%%) This program is distributed in the hope that it will be useful,
(%%) but WITHOUT ANY WARRANTY; without even the implied warranty of
(%%) MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(%%) GNU General Public License for more details.
(%%)
(%%) You should have received a copy of the GNU General Public License
(%%) along with this program; if not, write to the Free Software
(%%) Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
(%%) MA 02110-1301, USA.
(%%)
(%%) The latest version of this program can be obtained from
(%%) https://github.com/patacrep/
%! Copyright (C) 2014 The Songbook team (www.patacrep.com)
%!
%! This program is free software; you can redistribute it and/or
%! modify it under the terms of the GNU General Public License
%! as published by the Free Software Foundation; either version 2
%! of the License, or (at your option) any later version.
%!
%! This program is distributed in the hope that it will be useful,
%! but WITHOUT ANY WARRANTY; without even the implied warranty of
%! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%! GNU General Public License for more details.
%!
%! You should have received a copy of the GNU General Public License
%! along with this program; if not, write to the Free Software
%! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
%! MA 02110-1301, USA.
%!
%! The latest version of this program can be obtained from
%! https://github.com/patacrep/
(% variables %)

40
songbook_core/data/templates/layout.tex

@ -1,22 +1,22 @@
(%%) Copyright (C) 2014 The Songbook team (www.patacrep.com)
(%%)
(%%) This program is free software; you can redistribute it and/or
(%%) modify it under the terms of the GNU General Public License
(%%) as published by the Free Software Foundation; either version 2
(%%) of the License, or (at your option) any later version.
(%%)
(%%) This program is distributed in the hope that it will be useful,
(%%) but WITHOUT ANY WARRANTY; without even the implied warranty of
(%%) MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(%%) GNU General Public License for more details.
(%%)
(%%) You should have received a copy of the GNU General Public License
(%%) along with this program; if not, write to the Free Software
(%%) Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
(%%) MA 02110-1301, USA.
(%%)
(%%) The latest version of this program can be obtained from
(%%) https://github.com/patacrep/
%! Copyright (C) 2014 The Songbook team (www.patacrep.com)
%!
%! This program is free software; you can redistribute it and/or
%! modify it under the terms of the GNU General Public License
%! as published by the Free Software Foundation; either version 2
%! of the License, or (at your option) any later version.
%!
%! This program is distributed in the hope that it will be useful,
%! but WITHOUT ANY WARRANTY; without even the implied warranty of
%! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%! GNU General Public License for more details.
%!
%! You should have received a copy of the GNU General Public License
%! along with this program; if not, write to the Free Software
%! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
%! MA 02110-1301, USA.
%!
%! The latest version of this program can be obtained from
%! https://github.com/patacrep/
%% Automaticly generated document.
@ -111,4 +111,4 @@
\end{document}
(%%) End of file
%! End of file

38
songbook_core/data/templates/patacrep.tex

@ -1,22 +1,22 @@
(%%) Copyright (C) 2014 The Songbook team (www.patacrep.com)
(%%)
(%%) This program is free software; you can redistribute it and/or
(%%) modify it under the terms of the GNU General Public License
(%%) as published by the Free Software Foundation; either version 2
(%%) of the License, or (at your option) any later version.
(%%)
(%%) This program is distributed in the hope that it will be useful,
(%%) but WITHOUT ANY WARRANTY; without even the implied warranty of
(%%) MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(%%) GNU General Public License for more details.
(%%)
(%%) You should have received a copy of the GNU General Public License
(%%) along with this program; if not, write to the Free Software
(%%) Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
(%%) MA 02110-1301, USA.
(%%)
(%%) The latest version of this program can be obtained from
(%%) https://github.com/patacrep/
%! Copyright (C) 2014 The Songbook team (www.patacrep.com)
%!
%! This program is free software; you can redistribute it and/or
%! modify it under the terms of the GNU General Public License
%! as published by the Free Software Foundation; either version 2
%! of the License, or (at your option) any later version.
%!
%! This program is distributed in the hope that it will be useful,
%! but WITHOUT ANY WARRANTY; without even the implied warranty of
%! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%! GNU General Public License for more details.
%!
%! You should have received a copy of the GNU General Public License
%! along with this program; if not, write to the Free Software
%! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
%! MA 02110-1301, USA.
%!
%! The latest version of this program can be obtained from
%! https://github.com/patacrep/
(% variables %)

38
songbook_core/data/templates/songs.tex

@ -1,22 +1,22 @@
(%%) Copyright (C) 2014 The Songbook team (www.patacrep.com)
(%%)
(%%) This program is free software; you can redistribute it and/or
(%%) modify it under the terms of the GNU General Public License
(%%) as published by the Free Software Foundation; either version 2
(%%) of the License, or (at your option) any later version.
(%%)
(%%) This program is distributed in the hope that it will be useful,
(%%) but WITHOUT ANY WARRANTY; without even the implied warranty of
(%%) MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(%%) GNU General Public License for more details.
(%%)
(%%) You should have received a copy of the GNU General Public License
(%%) along with this program; if not, write to the Free Software
(%%) Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
(%%) MA 02110-1301, USA.
(%%)
(%%) The latest version of this program can be obtained from
(%%) https://github.com/patacrep/
%! Copyright (C) 2014 The Songbook team (www.patacrep.com)
%!
%! This program is free software; you can redistribute it and/or
%! modify it under the terms of the GNU General Public License
%! as published by the Free Software Foundation; either version 2
%! of the License, or (at your option) any later version.
%!
%! This program is distributed in the hope that it will be useful,
%! but WITHOUT ANY WARRANTY; without even the implied warranty of
%! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%! GNU General Public License for more details.
%!
%! You should have received a copy of the GNU General Public License
%! along with this program; if not, write to the Free Software
%! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
%! MA 02110-1301, USA.
%!
%! The latest version of this program can be obtained from
%! https://github.com/patacrep/
(* extends "layout.tex" *)

2
songbook_core/templates.py

@ -69,7 +69,7 @@ class TexRenderer(object):
self.texenv.variable_end_string = '))'
self.texenv.comment_start_string = '(#'
self.texenv.comment_end_string = '#)'
self.texenv.line_comment_prefix = '(%%)'
self.texenv.line_comment_prefix = '%!'
self.texenv.filters['escape_tex'] = _escape_tex
self.texenv.trim_blocks = True
self.texenv.lstrip_blocks = True

Loading…
Cancel
Save