View Single Post
Old 01-13-2020, 11:50 AM   #16
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,803
Karma: 6000000
Join Date: Nov 2009
Device: many
I guess we could build a do_not_update_me map of all broken links and pass it along the universal updates code. We could then have it check each link against that list before trying to update it. That would mean touching and fixing the universal updates code for every resource type.

If this only matters for AddExisting html or ImportHTML, we might be able to change the link in the html code to be effectively external. We could for example change a broken link such as:

../Styles/sheet1.css

to

fixme://../Styles/sheet1.css

so that it would go untouched by the universal updates code. We could leave it like that, so that the user could easily find any broken links with a simple search, or parse the xhtml file with gumbo and strip the fixme: somehow.

Thoughts?
KevinH is offline   Reply With Quote