On May 2, 2010, at 6:25 PM, Kenny Meyer wrote:
> Aaron DeVore (
aaron....@gmail.com) wrote:
>> Thank you for bringing this up. Leonard and I are currently discussing
>> how, not if, to add line/column numbers. We need to iron out details
>> like the API, implementation, and tests. Many thanks to Greg Baker,
>> who wrote the email/patch you linked to. The final implementation will
>> probably be based on his code.
>>
>> Cheers!
>> Aaron DeVore
>>
>> --
>> You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
>> To post to this group, send email to
beauti...@googlegroups.com.
>> To unsubscribe from this group, send email to
beautifulsou...@googlegroups.com.
>> For more options, visit this group at
http://groups.google.com/group/beautifulsoup?hl=en.
>>
>
> That's great news!
>
> The real reason of why I'd like to see this in a new release of BeautifulSoup
> is that I'm using BeautifulSoup to parse out translatable strings out of HTML
> to the gettext format. Would be nice to later find those strings again. :-)
I actually have a use case for this as well; modifying the contents of various tags where I can't necessarily parse & reconstruct the entire document (ASPX, for example).
If I new what line I found stuff on, I could do the replace in the document without worrying about disturbing the rest of it.