aligning SGML to text

Gerard Flanagan grflanagan at yahoo.co.uk
Mon Jun 19 03:55:10 EDT 2006


Steven Bethard wrote:
> Gerard Flanagan wrote:
> > Steven Bethard wrote:
> >> I have some plain text data and some SGML markup for that text that I
> >> need to align.  (The SGML doesn't maintain the original whitespace, so I
> >> have to do some alignment; I can't just calculate the indices directly.)
> >>   For example, some of my text looks like:
[...]
> >
> > Steve
> >
> > This is probably an abuse of itertools...
> >
[snip hammering]
>
> Thanks for taking a look.  Yeah, the alignment's a big part of the
> problem.  It'd be really nice if the thing that gives me SGML didn't add
> whitespace haphazardly. ;-)
>
> STeVe

I see, the problem was different than I thought. When all you have is a
hammer... :-)

Gerard




More information about the Python-list mailing list