From: Benny M. <ben...@gm...> - 2009-08-17 08:12:06
|
2009/8/15 Peter Landgren <pet...@te...>: > Hi, > > I looked through my reported issues and found this: > http://www.gramps-project.org/bugs/view.php?id=2848 > > Tried to look at it and found that in AsciiDoc.py > #-------------------------------------------------------------------- > # > # Writes text. > #-------------------------------------------------------------------- > def write_text(self,text,mark=None): > self.text = self.text + text > > 'text' sometimes contains "\n", which, if printed, should be replaced with 0xa. > > However, when printing endnotes the result is > 2. Svenska Kyrkan, "Föddebok", Information från föddelängder, (FL) > > a: Engelbrekt b: Vreta Kloster > > when is should be > 2. Svenska Kyrkan, "Föddebok", Information från föddelängder, (FL) > > a: Engelbrekt > b: Vreta Kloster > > In this case the is a 0xa in the string 'b: Vreta Kloster' > Where does this '\n' disappear? The error must be somewhere in the end_paragraph method. It takes the self.text variable, and formats it to print on the file. As this text has a leader/indent in that paragraph, my guess it the \n are removed, and should be re-added with the defined leader/indent, but the \n go lost. There must be a bug there somewhere. Benny > Or how do I define end of row/new line for each reference a:, b: c: ...? > > /Peter > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |