Blank lines in report citations
Posted: 15 Aug 2018 22:28
When running a standard Family Group Sheet report, I was frequently seeing blank lines between source citations. Trial and error confirmed that these arose from lumped source citations that contained more than one line of text and a carriage return at the end of the last line. Much of my data was originally entered in FTM, and this required the carriage return to ensure correct report formatting.
FH seems to correctly handle multi-line text from individual sources, where it is indifferent to whether a single trailing carriage return is present or not, but treats multiple carriage returns as deliberately adding white space to the end of the text. It's not clear to me why it treats lumped sources differently. This sort of mirrors what you see in the user interface for entering data, where it displays a variable size Text From Source box for single sources, but only a single line for lumped sources with all the lines concatenated together unless you double click to open an additional "zoom" window.
This behavior suggests that Calico Pi are trying to restrict lumped source citations to a single line. Most of the time that is not a problem (GRO index entries for example), but I have kept secondary sources such as FamilySearch and FreeReg as lumped (as they were in FTM originally) and cited just for the principal event they describe. When I locate the original register entry, I split it out into a new single source and delete the lumped occurrence.
There seems to be a fairly simple workaround, by removing all the trailing carriage returns (easiest by stripping the relevant blank 5 CONT lines from the GEDCOM file, quicker than writing a plug-in for my relatively modest database), but that doesn't feel very elegant. Being pedantic, the carriage returns should be there, as they are line terminators, not the first character of new lines, and introducing an error in my data just to correct another error in FH presentation is asking for trouble in the future.
Any other suggestions or insight, please? Perhaps modifying the report template to handle both types of citation in the same way, but is that a sledgehammer to crack a nut (or even possible)?
FH seems to correctly handle multi-line text from individual sources, where it is indifferent to whether a single trailing carriage return is present or not, but treats multiple carriage returns as deliberately adding white space to the end of the text. It's not clear to me why it treats lumped sources differently. This sort of mirrors what you see in the user interface for entering data, where it displays a variable size Text From Source box for single sources, but only a single line for lumped sources with all the lines concatenated together unless you double click to open an additional "zoom" window.
This behavior suggests that Calico Pi are trying to restrict lumped source citations to a single line. Most of the time that is not a problem (GRO index entries for example), but I have kept secondary sources such as FamilySearch and FreeReg as lumped (as they were in FTM originally) and cited just for the principal event they describe. When I locate the original register entry, I split it out into a new single source and delete the lumped occurrence.
There seems to be a fairly simple workaround, by removing all the trailing carriage returns (easiest by stripping the relevant blank 5 CONT lines from the GEDCOM file, quicker than writing a plug-in for my relatively modest database), but that doesn't feel very elegant. Being pedantic, the carriage returns should be there, as they are line terminators, not the first character of new lines, and introducing an error in my data just to correct another error in FH presentation is asking for trouble in the future.
Any other suggestions or insight, please? Perhaps modifying the report template to handle both types of citation in the same way, but is that a sledgehammer to crack a nut (or even possible)?