The reader of CREDITS (GuiAbout.cpp) now ignores lines that start
with the number sign (#). This commit also introduces a commented
out header in CREDITS reminding any potential editor that all
changes will be overwritten by generate_contributions.py.
+# Do not edit this file. It is created by the script generate_contributions.py
+# and any direct change to this file will be overwritten.
@bRonen Abravanel
@iE-mail: ronena () gmail ! com
Support for feyn diagrams
else:
txt_credits_data = str(as_txt_credits(contributors)).encode("utf-8")
txt_credits = open(argv[1], "wb")
+ txt_credits.write(b"# Do not edit this file. It is created by the " \
+ b"script generate_contributions.py\n# and any direct change to " \
+ b"this file will be overwritten.\n")
txt_credits.write(txt_credits_data)
if sys.version_info[0] < 3:
QString line;
do {
line = ts.readLine();
+ if (line.startsWith("#"))
+ continue;
if (line.startsWith("@b"))
out << "<b>" << line.mid(2) << "</b>";
else if (line.startsWith("@i")) {