An external reference will certainly have a colon, so something like this (assuming they're all surrounded by ")?
's|"\([^":]*\.html\)"|"\1.php"|g' I haven't really tested much, but it's an idea... In message <[email protected]> on Sat, 20 Dec 2014 18:52:29 +0100, Ulrich Pegelow <[email protected]> said: ulrich.pegelow> The culprit seems to be this command in doc/usermanual/CMakeLists.txt: ulrich.pegelow> ulrich.pegelow> COMMAND find ${CMAKE_CURRENT_BINARY_DIR}/wp -name *.html -exec sed -i ulrich.pegelow> "s/\\.html/\\.html\\.php/g" {} \; ulrich.pegelow> ulrich.pegelow> (and the corresponding command for mult-line replacements if Saxon is used). ulrich.pegelow> ulrich.pegelow> It does not destinguish between internal references of the form: ulrich.pegelow> ulrich.pegelow> href="xyz.html" ulrich.pegelow> ulrich.pegelow> and external references like: ulrich.pegelow> ulrich.pegelow> href="http://docs.gimp.org/2.8/en/gimp-concepts-layer-modes.html" ulrich.pegelow> ulrich.pegelow> So, any sed expert around to fix this? :) ulrich.pegelow> ulrich.pegelow> Ulrich ulrich.pegelow> ulrich.pegelow> ulrich.pegelow> Am 20.12.2014 um 17:56 schrieb Markus Jung: ulrich.pegelow> > Hello folks, ulrich.pegelow> > ulrich.pegelow> > the online version of the user manual has broken links, because a ".php" ulrich.pegelow> > suffix is appended to them. Apparently, this only happens to URIs ending ulrich.pegelow> > with ".html". For example, the blend mode link pointing to the GIMP user ulrich.pegelow> > manual ulrich.pegelow> >> http://www.darktable.org/usermanual/ch03s02s06.html.php ulrich.pegelow> > Should point to this address (and in fact, the source contains the ulrich.pegelow> > correct URI) ulrich.pegelow> >> http://docs.gimp.org/2.8/en/gimp-concepts-layer-modes.html ulrich.pegelow> > ulrich.pegelow> > A quick search revealed a second victim of this issue, section 8.1, the ulrich.pegelow> > link to the Lua user manual. ulrich.pegelow> > ulrich.pegelow> > Regards, ulrich.pegelow> > Markus ulrich.pegelow> > ulrich.pegelow> ulrich.pegelow> ------------------------------------------------------------------------------ ulrich.pegelow> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server ulrich.pegelow> from Actuate! Instantly Supercharge Your Business Reports and Dashboards ulrich.pegelow> with Interactivity, Sharing, Native Excel Exports, App Integration & more ulrich.pegelow> Get technology previously reserved for billion-dollar corporations, FREE ulrich.pegelow> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk ulrich.pegelow> _______________________________________________ ulrich.pegelow> darktable-devel mailing list ulrich.pegelow> [email protected] ulrich.pegelow> https://lists.sourceforge.net/lists/listinfo/darktable-devel ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ darktable-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/darktable-devel
