Quote:
Originally Posted by KevinH
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?
|
It definitely only matters for Add Existing/Import HTML from my point of view.
If they must be changed at all (and I still don't quite follow why we'd want to alter an unusable css/image link into
different unusable css/image link), I guess I'd have no problem with a fixme:// protocol being added. But would it survive any and all QUrl finagling the various Sigil features might do it before it was fixed?