Hey Don, I see that your comment on the fix says:
2007-04-11 Don Allingham <don@...>
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.write_source_ref): replace
newlines with semicolons on output.
I'm curious to know why you didn't just use the CONT tag. From the
description below, that seems like it would preserve the newline idea
and help gramps avoid the 255-characters-per-line limit.
"The field sizes show the minimum recommended field length within a
database that is constrained to fixed length fields. The field sizes
are in addition to the GEDCOM level and tag overhead. GEDCOM lines are
limited to 255 characters. However, the CONCatenation or CONTinuation
tags can be used to expand a field beyond this limit. CONT line
implies that a new line should appear to preserve formatting. CONC
implies concatenation to the previous line without a new line. This is
used so that a text note or description can be processed (word
wrapped) in a text window without fixed carriage returns. The CONT and
CONC tags are being used to extend specified textual values. "
On 4/5/07, Don Allingham <donaldallingham@...> wrote:
> This is not valid GEDCOM. All lines in a GEDCOM file must begin with a
> level indicator (an integer) followed by a token.
> 3 PAGE xxxx
> is valid, and
> is not.
> You can modify these lines to that GRAMPS will accept them. Change them
> 3 PAGE Batch: 8200055
> 4 CONT Sheet: 06
> 4 CONT Source Call: 0884785
> 3 DATA
> Ancestry.com generates *HORRIBLE* gedcom files. By far, the worst I have
> ever seen. It seems that they take pleasure in violating the spec.
> On Thu, 2007-04-05 at 12:47 -0400, Gerald Britton wrote:
> > Today I tried to upload a gedcom I generated from gramps to
> > ancestry.com. It rejected the file, telling me that it is not valid
> > gedcom!
> > Scanning the file for anything suspicious, I came across this fragment:
> > 3 PAGE Batch: 8200055
> > Sheet: 06
> > Source Call: 0884785
> > 3 DATA
> > What I noticed is that the two lines after PAGE have no tags. Is this
> > correct, or should there be tags?
> > FWIW the data stored in gramps was copied and pasted from a web page.
> > In the data in the database there is a hex '0a' where the "Sheet" and
> > "Source Call" lines begin in the generated gedcom.
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys-and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Gramps-users mailing list
> > Gramps-users@...
> > https://lists.sourceforge.net/lists/listinfo/gramps-users