Remplacer les “_” par des espaces dans le titre d'un média ajouté :
/usr/lib/python3/dist-packages/gramps/gui/editors/addmedia.pyroot = root.replace("_", " ") juste après (root, ext) = os.path.splitext(basename)/home/jpm/.local/share/gramps/gramps60/plugins/GedcomforGeneanet/home/jpm/.gramps/gramps52/plugins/GedcomforGeneanet/<path-to-plugins-dir>/GedcomforGeneanet/GedcomforGeneanet.py remplacer dans la fonction def _sources() la boucle listant les attributs vers la ligne 952 par : for srcattr in source.get_attribute_list(): level = 1 data = None if self.urlshort: url_pattern = "^https?:\\/\\/(?:www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_\\+.~#?&\\/=]*)$" link = re.match(url_pattern, srcattr.value) if link: url=link.group() data = "<A HREF=\"" + str(url) + "\" title=\"" + str(url) + "\">" + str(srcattr.type) + "</A>" if data == None: data = str(srcattr.type) + ' : ' + srcattr.value if data != None: self._writeln(level + 1, "DATA", data)
_source_ref_record() également ligne 1551 :if self.citattr: for citattr in citation.get_attribute_list(): data = None if self.urlshort: url_pattern = "^https?:\\/\\/(?:www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_\\+.~#?&\\/=]*)$" link = re.match(url_pattern, citattr.value) if link: url=link.group() LOG.debug("deb write gedcom %s : %s :" % ( str(url) , citattr.value )) data = "<A HREF=\"" + str(url) + "\" title=\"" + str(url) + "\">" + str(citattr.type) + "</A>" if data == None: data = str(citattr.type) + ' : ' + citattr.value if data != None: self._writeln(level + 1, "DATA", data)
pycache et relancer Gramps