Zim

Comment 1 for bug 501496

Revision history for this message
Sebastian Audet (smaudet) wrote :

Hi, I believe I may have identified the general area for the fix, however I had a question about where I should implement this, if anyone wants to provide input.

I can either do this inside pageview, however this means I have to implement the sharing mechanism (as well as other machinery) inside pageview, this might not be architecturally sound or wise, or I can create an external object (link-handling.py) which just reads all copy/paste calls and sanitizes them appropriately.

The second approach sounds cleaner but looking at the code it is unclear which route to take - a lot of link handling already seems to occur in various parts of the code, so it might be a good idea to decouple this functionality in future, but at the same time it might cause confusion and also create un-necessary work in re-writing/moving large bits of code functionality.